Entity Associations

All,
we use JDeveloper 9.0.3.10.35 with j2sdk1.4.2 on WindowsXP.
We have a very urgent problem.
We want to go into production in 4 weeks, so we need to have this solved. (In other words, PLEASEHELP_).
Here is a short decription of our situation:
1. We have 3 entities A, B and C. A&B are master entities and C is just a helper to join them.
They look like
A : A_attr0 : seq (PK)
A_attr1 : ....
B : B_attr0 : seq (PK)
B_attr1 : ....
C : C_attr0 : Seq (PK)
C_attr1 : ASeq (FK) Association with Entity A (0..1 to 1)
C_attr2 : BSeq (FK) Association with Entity B (0 ..1 to 1)
There are three possible constellations:
i) A & B are connected thru C: Then 3 entities exist with C_attr1 = A_attr0 and C_attr2 = B_attr0
ii) A is not connected to any B: Then 2 entities exist with C_attr1 = A_attr0 and C_attr2 is null
iii) B is not connected to any A: Then 2 entities exist with C_attr1 is null and C_attr2 = B_attr0
2. We have a View XView consisting of the 3 updateable entities A, B and C. Obviously A&B are outer joined to C
3. The setAttribute-methods of XViewImpl look like this:
public void setC_attr1(Number value)
System.out.println("C->A " + getC().getA());
if (getC_attr1() == null && value != null)
getC().setA(getA());
System.out.println("C->A " + getC().getA());
setAttributeInternal(C_ATTR1, value);
System.out.println("C->A " + getC().getA());
We make sure that we call this methods whenever data for A is entered (and therefore a new entity needs to be created and linked).
4. The postChanges-method of the C-entityImpl looks like this:
public void postChanges(TransactionEvent e)
System.out.println("Post Changes C");
System.out.println("C " + this);
System.out.println("A " + getA() );
System.out.println("B " + getB() );
if (null != getA())
getA().postChanges(e);
if (null != getB())
getB().postChanges(e);
return;
So we make sure that A and B (if any) are posted before C
5. If the user enters data for both entities (A & B) using that view, we automatically create a C entity that has the links set correctly.
If the user enters just data for one ( A or B ) of the entities, the respective other entity is left unused.
Scenario:
1a. The user creates a new row in XView
1b. User sets an attribute in A for the first time
Output of setC_attr1 (111111)
<--- snip --->
C->A null
C->A [oracle.jbo.Key[111111 ]]
C->A [oracle.jbo.Key[111111 ]]
<--- snip --->
1c. User sets an attribute in B for the first time
Output of setC_attr2 (222222)
<--- snip --->
C->B null
C->B [oracle.jbo.Key[222222 ]]
C->B [oracle.jbo.Key[222222 ]]
<--- snip --->
1d. User commits
Output of postChanges
<--- snip --->
Post Changes C
C [oracle.jbo.Key[333333 ]]
A [oracle.jbo.Key[111111 ]]
B [oracle.jbo.Key[222222 ]]
<--- snip --->
The data is posted, everything is fine.
2a. The user creates a new row in XView (again!)
2b. User sets an attribute in A for the first time
Output of setC_attr1 (111112)
<--- snip --->
C->A null
C->A [oracle.jbo.Key[111112 ]]
C->A [oracle.jbo.Key[111112 ]]
<--- snip --->
2c. No attributes in entity B
2d. User commits
Output of postChanges
<--- snip --->
Post Changes C
C [oracle.jbo.Key[333334 ]]
A [oracle.jbo.Key[111112 ]]
B null
<--- snip --->
The data is posted, everything is fine.
For those still reading, here's the beef!
3a. The user creates a new row in XView
3b. User sets an attribute in A for the first time
Output of setC_attr1 (111113)
<--- snip --->
C->A null
C->A [oracle.jbo.Key[111113 ]]
C->A [oracle.jbo.Key[111113 ]]
<--- snip --->
3c. User sets an attribute in B for the first time
Output of setC_attr2 (222224)
<--- snip --->
C->B null
C->B null
C->B null
<--- snip --->
3d. User commits
Output of postChanges
<--- snip --->
Post Changes C
C [oracle.jbo.Key[333333 ]]
A [oracle.jbo.Key[111111 ]]
B null
<--- snip --->
The attribute C_attr2 is set to 222224, but the entity association is not set at all.
The data cannot be posted because of database integrity constraint violations in C.C_attr2.

Hi Mike,
first of all thank you very much for reply. I know this is a very complicated case and my description maybe not the best one.
Now to your questions :
a. This is not a copy-and-paste error. I mean that if we do the same thing with case 2 between we get different results.
b. yes, my test did not include "user just creates B". But this give the same result if (and now it will be a bit more complex) the user in step 3 creates the Entity A as the first one of A and B.
Because sometimes you do not get the error due BC4J posts itself the A and B before C and so you don't get the DB error but the links between entities are not set as i described in original message.
c. Sofar i can evaluate the associations are symmetric ( I have checked all respective XML-files. Moreover the associations are generated automatically by BC4J from DB-constraints and they are symmetric too). As i said above we get the same problem if we left Entity A in setp 2 unused (just with violation of other DB constraint).
I try with a more interesting example from our code.
Situation :
Assume we are in step 3 and we left an A Entity in step 2 unused and the user enters for first time data for Entity A. Before set this attribute in Entity our EntityBaseClass sets the seq of Entity C and the seq of the Entity A
(In our super class for all entities we set all general attributes (like seq if exists, modify indicator etc.) and default values only after the user enter data for a attribute first time. So we ensure that unused entities are in PostState=INITIALIZED and will make no trouble while posting etc.
Now in the class XViewRowImpl we try to connect A and C.
<-- snip -->
AEntityImpl aFromViewRow = getA();
AEntityImpl aFromCach = ((AEntityImpl) getA().getMyEntityDef().findByPrimarykey(((XViewImpl)getViewObject()).getDBTransaction(),
new Key(new Object[] {getA().getSeq()}));
System.out.println("A from Row = " + aFromViewRow);
System.out.println("A from cach = " + aFromCach);
System.out.println("A in C = " + getC().getA());
getC().setA(aFromViewRow);
System.out.println("A in C = " + getC().getA());
<-- snip -->
The output is :
A from Row = [oracle.jbo.Key[333333 ]]
A from cach = [oracle.jbo.Key[333333 ]]
A in C = null
A in C = null
we observe that after call getC().setA(aFromViewRow) the FK attribute of C is set to PK attribute of A (i.e. 333333 ) but if you ask the entity about his A it returns with null!!! and this cause the exception in postChanges cycle because the postchanges() of C relies on correct links between entities if the Fks are set.
I think it must be related to the unused entity in step 2. As you saw above the EntityCach can find the new Entity A but the entity C can not.
Actually we have the same problem if we only do step 2 and 3. I just added the step 1 to prevent someboby may think we may have general problems setting all three entities.
We can repeat step 1 n-times without any error.
we can repeat step 2 n-times without any error.
Once you left one entity (A or B) in previous step unused you can not set the new one in C in next step.
Additionally i must say that in a test case i reexcute XView after step 2 (just to see what happens) but got the same error.
I fear that this message is not less complex than the first one but i hope it helps a little bit more
Thanks in advance
Masoud

Similar Messages

  • Getting a oracle.jbo.NoDefException: JBO-25002:Entity Association not found

    On using VO.createRow I get an exception that say
    Caused by: oracle.jbo.NoDefException: JBO-25002: Definition <Association package> of type Entity Association is not found.
    The Exception logs shows that the error is created in a EO which does not have any direct connection with the Association in question
    so the create method is fired in Entity1 but this error comes for an association between Entity2 and Entity3. There is however an association between Entity1 and Entity2.
    Entity1 and Entity2 are in the same project as the assoc between E2 and E3
    E3 is in another project, but I have tried refreshing the library dependencies and clean all + rebuild.

    Refer JBO-25002: Definition {1} of type {0} is not found.
    http://docs.oracle.com/cd/E24382_01/core.1112/e22506/chapter_jbo_messages.htm

  • Determine all entity associations used in application module?

    Hi,
    ADF 11.1.1.2.0, ADFBC.
    I want to create a JUNIT testcase to loop through all entity associations and compare them with the relations in the Oracle database.
    to get all view objects of the AM I use following method:
    am.getViewObjectNames(true,true);
    How to get all entity associations used in an AM?
    regards
    Peter

    Hi,
    did you try
    View Object --> Entity --> EntityDefImpl --> getAssociationDefImpls() ?
    Frank

  • Multiple cursors opened when following BC4J Entity Association in a loop

    I am using BC4J in JDeveloper 9.0.4.1.1 Build 1436 against a 9.0.2 database.
    (Note the BC4J project was originally created in a 9.0.3 JDeveloper release)
    In the BC4J project, I have a "Contract" Entity that has a 1-to-1 Association with an "Estimate" Entity.
    From my ViewObject, I iterate over a set of Contracts.
    For each Contract, I follow the Association to obtain the Estimate and read a few attributes.
    Occassionally I am running out of cursors in the database whilst using this.
    It seems that each time I access an Estimate using the Association, a new cursor is opened to retrieve the Estimate. These cursors remain open until I complete the loop and the cursor for the VO is closed.
    Therefore, the maximum number of rows returned by the ViewObject is limited to the number of available cursors in the database at the time.
    Why do the cursors remain open after the Entity object has been retrieved?
    Am I using the association incorrectly?

    I wouldn't surprise me if there was a bug in the association code like this.
    For the time being you could just set the where clause and do the query yourself manually on the child vo....

  • ADF BC Entity Associations

    I have two Entities that have an association/relationship. When the parent entity is created it gets a DB sequence as its primary key. When the child entity is created it also gets a DB sequence as its primary key (different DB sequence). The child key has a foreign key/attribute that needs to be set referencing the primary key of the parent entity.
    In the ADF BC EntityImpl, both entities expose their accessor methods of the association. When I attempt to retrieve the primary key of the parent entity through the associated entity, it returns null.
    The following snipet is from the child entity:
    protected void create(AttributeList AttributeList) {
    super.create(AttributeList);
    DBTransaction dbTrans = getDBTransaction();
    SequenceImpl seq = new SequenceImpl("ID_SEQ", dbTrans);
    setTherapyId(seq.getSequenceNumber().toString());
    setIDFromParent(getEntityAuth().getAuthorizationNum()); // This returns null pointer error
    How do I go about retrieving the primary key of the parent entity from the child entity?
    Any help would be appreciated.
    /**Gets the associated entity EntityAuthImpl
    public EntityAuthImpl getEntityAuth() {
    return (EntityAuthImpl)getAttributeInternal(ENTITYAUTH);
    }

    I am still unable to access the source EntityImpl from the destination EntityImpl.
    From the the destination entity there is a source EntityImpl. But, when I attempt to access any methods/attributes of the source implementation, it returns null.
    Just a follow-up: I have two entities that have an association. Both entities have overridden the Create method so that I can retrieve separate db sequences. I create the source entity first and all goes well, then the destination entity is created.
    When I create the destination entity I am attempting to access the associated source EntityImpl and set an attribute in the destination entity to a source entity attribute value.
    The destination EntityImpl does provide getter/setter methods for the source EntityImpl. But, again when I attempt to use the getter method it returns null.
    Can I actually access the source EntityImpl from the destination EntityImpl or I am mislead?
    Any help appreciated.

  • [ADF BC] How to create an entity association to get one child

    I have two entities in a one-to-many relationship (say Employees and Employee_History). Each employee has one or more history entries.
    What I would like to do is have an Employee view that contains all the attributes from the Employee entity and also an attribute (or many attributes) from the latest entry in the Employee_History entity.
    Is there a way I can model this with ADF Business Components?
    Things I've tried:
    - adding SQL in the one-to-many association to ensure only one row is returned (does work, but affects other operations like creating a new employee record)
    - creating a one-to-one association between the two entities (still returns more than one record)

    Thank you Steve, that works great for the hire date, but what about when you need another column from the same record as that hire date.
    Would you have to use a query like this?:
    select DEPTNO, DNAME, LOC, (select max(firstname) from emp e where e.hiredate = (select max(hiredate) from emp where deptno = Dept.deptno) and e.deptno = Dept.depno)) as LAST_EMP_HIRED_NAME from dept DeptAt the moment I've been able to get it working like I want to (as far as I can tell) by referencing the child entity in the parent view and using a where clause in the view's SQL to reduce the rows returned, like this (using the example of departments and employees):
    SELECT Dept.DEPTNO,
           Dept.DNAME,
           Dept.LOC,
           Emp.DEPTNO AS DEPTNO1,
           Emp.HIREDATE,
           Emp.FIRSTNAME
    FROM DEPT Dept, EMP Emp
    WHERE Dept.DEPTNO = Emp.DEPTNO AND Emp.HIREDATE = (SELECT MAX(HIREDATE) FROM EMP WHERE DEPTNO = Dept.DEPTNO)Testing this with the business components tester, it seems to work.

  • Entity level validation

    I have a requirement where there are two entities in a master detail relationship (A and B respectively linked through entity association)
    EO A has a field called TotalQuantity (master)
    EO B has a field called Split Quantity (detail)
    The total quantity in the EO A to be split in the EO B, whereas the totals of the splits should equal the Total quantity of the EO A.
    Can anyone suggest how to achieve this consistency by using an entity level validation.?
    Please note that the EO A will be created and committed first, then only the child records are created(EO B). Both are not created and committed together.

    for the sales Quantity you can have a validation on 'SalesQuantity' as 'Compare Validation' against the ViewAccessors attribute in the EO. operator as less than or equal to
    for Entity you can have a 'Collection Validation' with the operaiton as 'Sum' with 'Equals' operator against the ViewAccessors attribute in the EO

  • Creating Views on multiple entity-objects

    Dear Forum,
    Is it possible to make associations and lookups based on multiple entity-objects.
    I made a custom view, say view1 based on two entity-objects, say entity1 and entity2.
    I used some fields from entity1 and some from entity2. There's a 1 to 1 association between the index of entity1 and entity2.
    Now I want to make a master-detail between entity1 and view1. I tried to make links and associations, but that didn't work.
    Any ideas?
    Kind regards,
    Arjen

    Arjen,
    I am a bit confused by what it is you need. It appears you may have Entity Object and View Objects mixed up. Entity Objects are one-to-one with database tables. So, for every table one Entity Object, and the other way around. Associations are, pretty much, one-to-one with foreign keys on the database. So, if two tables have a foreign key between them, the two Entity Objects will have an Association between them. In that respect, Entity Objects and Associations are usually 'strictly defined' by the database model.
    The layer of View Objects and View Links is where you 'get design control' in the Business Components arena. A View Object can be based on zero, one or more Entity Objects. Viewlink, defining 'Master-Detail' relationships between View Objects (and NOT Entity Objects!!) can but don't have to be based on Entity Associations (i.e. foreign keys), but can be based on any attribute in the 'Master' view to any attribute in the 'Detail' view.
    In this respect, your statement that you want to "make a master-detail between entity1 and view1" makes no sense. It sounds like you need to create a View2, and then make a View Link between View1 and View2.
    Kind regards,
    Peter Ebell
    JHeadstart Team

  • Commit both parts of a "references" association together

    I'm running JDev 11.1.2.3.0.
    I have an Entity Association between TABLE_A and TABLE_B Entities in a 0..1 -> * references relationship. I will either be creating just a record in TABLE_B or records in both TABLE_B and TABLE_B.
    When creating records in both Entities I want both records to form an atomic transaction; either commit both or rollback. The problem is that if I try to commit both at the same time, the child record won't insert because the parent PK has changed from the temporary negative number. If I set the Association to be a Composite Association, committing both records together works, but I am then unable to commit a single record in TABLE_B on it's own.
    What is the recommended solution for this situation?
    Many thanks

    The referencing field in the "child" table isn't mandatory. This is why I really want to use a references association, I just couldn't get it working so I tried the composition association.
    The relationship is TABLE_A 0..1 -> * TABLE_B. The two are independent; I'm either going to insert into both tables or just TABLE_B.
    What I'm trying to do is the equivalent of:
    INSERT INTO TABLE_A()
    VALUES()
    RETURNING ID INTO TABLE_A_ID_VAR;
    INSERT INTO TABLE_B(TABLE_A_ID)
    VALUES(TABLE_A_ID_VAR);
    COMMIT;
    or just
    INSERT INTO TABLE_B()
    VALUES;
    COMMIT;
    I don't understand how one does the two table insert with TABLE_B referencing TABLE_A in ADF. If I try to do that with just a "references" association, I see TABLE_B FK is initially populated with the temporary negative ID of TABLE_A, but isn't updated on COMMIT with the actual ID.

  • Entity with key cannot be owned by another row

    Hi All,
    I have a master detail relationship between 2 VOs using Entity level association. When I try to create details rows using createAndInitRow(), I am getting below error. The Association has composition association, cascade delete, cascade update key attributes selected
    Entity with key:oracle.jbo.Key[ XXXXXXX ] cannot be owned by another row:oracle.jbo.Key[ XXXXXXX ]
    Code -
    RowSetIterator rsi = (RowSetIterator)((ParentVORowImpl)parentCurrentRow).getChildVO();
    NameValuePairs nvp = null;
    Row row = null;
    for (ExpressionObject obj : objectList) {
    nvp = new NameValuePairs();
    nvp.setAttribute("AAA", "AAA");
    nvp.setAttribute(<Attributes>, <Attribute Values>);
    row = rsi.createAndInitRow(nvp);
    rsi.insertRow(row);
    The moment createAndInitRow is called for first item I get the error and other items does not get associated with parent properly.
    Any clue what wrong am I doing??

    Copying from [http://www.packtpub.com/oracle-application-development-framework-real-world-developers-guide/book|Oracle ADF Real World Developers Guide]
    Creating child rows in composition association
    Creating a new child row is a bit tricky when the master-child entity association
    type is composition. When you mark an association between master and child entity
    objects as composition, the framework takes the necessary steps to ensure that the
    child entity object row does not exist without the master entity row. If you try to
    create a new child row by calling createRow() on the view object, the framework
    will throw the oracle.jbo.InvalidOwnerException: JBO-25030: Failed to
    find or invalidate owning entity exception.
    There are two possible ways to create child entity rows in this case:
    • Find the master row by using findByKey() or calling executeQuery() with
    a proper condition and then get the RowIterator for the child collection
    by accessing the view link accessor attribute. Now you can use the child
    RowIterator to call createRow() for creating the child row. The following
    code snippet illustrates the creation of the child entity row for the
    Country-Location composition association:
    //In application module implementation class
    * This custom method defined in application module
    * creates child location rows for a master
    * country entity through accessor iterator
    public void createChildRowsThruIter() {
    //Find the parent view object
    ViewObject countries = findViewObject("Countries");
    //IN is the Key value for a specific Country row
    Key key = new Key(new Object[] { "IN" });
    //Find the country for 'IN', maxNumOfRows=1
    Row rows[] = countries.findByKey(key, 1);
    //Access the RowIterator for Location
    RowIterator locIter = (RowIterator)rows[0].
    getAttribute("LocationVO");
    //Create and init location row
    Row row = locIter.createRow();
    row.setAttribute("LocationId", 2200);
    row.setAttribute("City", "Bangalore");
    locIter.insertRow(row);
    • Alternatively, you can directly create a new row in the child view object,
    using createAndInitRow() by passing an appropriately constructed instance
    of oracle.jbo.NameValuePairs, which includes the foreign key attribute
    that provides the context for a child row. Here is an example:
    //In application module implementation class
    * This custom method defined in application module
    * creates child location rows for a master
    * country entity using createAndInitRow()
    public void createChildRowsThruNameValuePairs() {
    ViewObject locations = findViewObject("Locations");
    //Initialize Attributes and Values
    String[] attributes = new String[] { "CountryId" };
    Object[] values = new Object[] { "IN" };
    //Pass the foreign key value for Country while
    //initializing new location row
    Row locRow = locations.createAndInitRow(new
    NameValuePairs(attributes, values));
    //Set other attributes
    locRow.setAttribute("LocationId", 2200);
    locRow.setAttribute("City", "Bangalore");
    locations.insertRow(locRow);
    }

  • Error Message Help please

    I get this when trying to get an appMod, any clues?
    JBO-29000: Unexpected exception caught: oracle.jbo.common.ampool.ApplicationPoolException, msg=JBO-30003: The application pool (fsweb.jbo.account.AccountModule) failed to checkout an application module due to the following exception:
    BO-30003: The application pool (fsweb.jbo.account.AccountModule) failed to checkout an application module due to the following exception:JBO-25002: Definition fsweb.jbo.account.MarketplaceAttributeValuesMarketplaceAttribute of type Entity Association not found

    I get this when trying to get an appMod, any clues?
    JBO-29000: Unexpected exception caught: oracle.jbo.common.ampool.ApplicationPoolException, msg=JBO-30003: The application pool (fsweb.jbo.account.AccountModule) failed to checkout an application module due to the following exception:
    BO-30003: The application pool (fsweb.jbo.account.AccountModule) failed to checkout an application module due to the following exception:JBO-25002: Definition fsweb.jbo.account.MarketplaceAttributeValuesMarketplaceAttribute of type Entity Association not found Brette:
    This error (JBO-25002) says that a part of your app is looking for an entity association named fsweb.jbo.account.MarketplaceAttributeValuesMarketplaceAttribute, but it couldn't load it. Two possible reasons:
    1. Are you sure fsweb.jbo.account.MarketplaceAttributeValuesMarketplaceAttribute is an entity assoc? Or, is it an attribute? Perhaps your app is trying to use an attr as an assoc?
    2. Or, the xml file for the aforementioned entity assoc cannot be located. Please check to see if the XML file is jarred correctly and that it is accessible from the CLASSPATH. Note that fsweb.jbo.account.MarketplaceAttributeValuesMarketplaceAttribute would have a corresponding XML file name of fsweb\jbo\account\MarketplaceAttributeValuesMarketplaceAttribute.xml. This file should be in one of the jars mentioned in the CLASSPATH or should be reachable from one of the directories listed in the CLASSPATH.
    Thanks.
    Sung

  • Problem with saving Parent - Child  View Objects in ADF 11g.

    Hi Every one,
    I have a requirment, something like I will be displaying some data on my jsff screen based on one Transient View Object. Whenever user clicks on Save button, I have to do following steps in my AMImpl.
    -> Preapre dynamically Parent View Object Rows based on some logic
    -> Prepare dynamically Child View object Rows and invoke insertRow method on respective child view object.
    When I say commit() First Parent ViewObject data need to be saved and then Child View object data has to be saved. I am having Parent - Child Key relation ship btw these two ViewObjects. Some how I am populating the Parent Primary key in the Child View Object. Please suggest me If there is any other alternative to this.
    Thanks

    I got the solution, Enabling the check box option for Master - Detail Entity association (CompositionAssociation -> Cascade Update Key Attributes) resolved the issue.
    Thanks

  • Problem in Deploying ADF Application - development Mode

    hi Experts,
    i have jdev11.1.1.5.0 in a combination with weblogic 10.3.5.
    my application is working fine, while running on integrated wls (just give right click and on my jspx page - auto deploying).
    if i going with manually deploying option on same intergrated wls or standalone wls means
    i can able to get my login page, if i login means it doesnt re-direct to my index page what it would be problem? (it doent replicate this kind of intergrated wls (auto deploying))
    Details of my Application
    am not using any adf security. my login page is in session scoped bean , index page - backing bean scoped.
    my log shows, your username and password is correct. that means it can able to access my Application Module.
    am using adfc - config for redirecting
    <control-flow-rule id="__5">
        <from-activity-id id="__6">loginPage</from-activity-id>
        <control-flow-case id="__7">
          <from-outcome id="__13">error</from-outcome>
          <to-activity-id id="__8">loginPage</to-activity-id>
        </control-flow-case>
        <control-flow-case id="__14">
          <from-outcome id="__16">success</from-outcome>
          <to-activity-id id="__15">Indexpage</to-activity-id>
        </control-flow-case>
      </control-flow-rule>This Same project Doesnt behave like this Olden days.
    i maked out sample for deplying an adf application in both Integrated wls and standlone wls. it's fine.
    can anyone guide me where am?
    any one had a idea?
    while am deploying manually i got dialog "deployment configuration" to deploy.
    i got this in my log.
    [01:07:44 PM] Entering Oracle Deployment Plan Editor
    [01:07:46 PM] No metadata repositories found on target server. Using values found in adf-config.xml. //show this red collor

    + info,
    sometimes, i had another problem while login
    if i go with manual deployment on integrated wls/ standlone wls
    JBO-25002: Definition com.x.x.model.associations.xLogAS of type Entity Association is not found.i had viewlink named "xxxLogVL" in my model layer that viewlink mapped a association named "xLogAS".
    both are looking safe while running Business Component broswer and running intragrated wls(auto deploying).
    i checked the myApplicationModule.xml no warning on right hand gutter. so what would be the problem.?
    somtimes i had this? how can i fix this?
    cant come to conclusion? with to two different problem in same project.

  • Approach to designing model layer

    Hi,
    I am keen to understand different approaches/routes to be followed to design model layer of an ADF project.
    As an example, the embedded URL shows the logical hierarchy strucutre of various business modules -
    http://www.slideshare.net/AnkitGupta55/hierarchy-23178558
    The logical structure will govern how the data will be shown to the user based on his selection of a value of in a top level LOV/Query component.
    For Ex:  if the user choose Child 1, then he should be able to see hierarchy : Main > Child 1 > Sub child 1
    Every module in the diagram has a backend supporting table, however, the tables may not have the similar relationships. So a follow up query would be - Is it mandatory to have an identical table relationships as depicted in the diagram.
    Also, request you to share suggestions on designing Entity Objects, View Objects etc.
    JDeveloper Version - 11.1.2.4.39.64.36.1
    Best Regards,
    Ankit Gupta

    Hi,
    Every module in the diagram has a backend supporting table, however, the tables may not have the similar relationships
    What do you refer to as module? The blocks as I see them can be treated as entities with associated VO. The relation between the two can be defined using entity associations or view links. Unfortunately its not easy to answer your question without knowing what you do know and what you don't know about ADF BC. Have you tried ADF (e..g running a tutorial) or have you only theoretical experience with the product. If you write ....
    request you to share suggestions on designing Entity Objects, View Objects etc.
    What exactly are you looking for and what does "etc." stand for in regards to the technology aspect it would represent? Entities and VO can be derived from an existing database infrastructure. If you don't have this, starting with teh ADF BC Diagrammer is a good way to start with. All documentation are accessible from otn.oracle.com/products/jdev
    Frank

  • View objects, view links, does not search properly

    Hi,
    I am using Jdev 11.1.2.0
    I have created a search criteria based on view objects and view links. It has entities and entity associations as base. The structure is as follow:
    vo1 ->vl (1 to 1) - > vo2
    ->vl ( 1 to many) -> vo3
    Any search attribute which is not from vo1 return bad result. It happens in running app module and in the jspx page. In app module, it sometimes complains about populating the wrong attribute for the named criteria.
    The search criteria is using "exists" statement for vo2 and vo3 for adding the conditions. It has many attributes within the exist statement.
    So what is the problem. Why it does not join properly? Why does it return bad result when search attribute is from vo2 and vo3? Please help.
    Any more information requires to solve the problem?
    Thanks,
    Arthur

    Hi,
    Two more information: vo1 is composed of Entity1 (1..M) Entity2 and Entity1 (1..1) Entity 3. vo2 is composed of Entity 2 and vo3 is composed of Entity 4.
    I follow the information from http://download.oracle.com/docs/cd/E16162_01/web.1112/e16182/bcquerying.htm#BCGIFHHF
    to create the search criteria.
    Arthur

Maybe you are looking for

  • Itunes wont install error 7

    one morning i turned on my computer and went to itunes this appeared.... "C:\Program Files\Apple\Apple Application Support\CoreAudio Toolbox.dll is either not designed to run on windows or it contains an error. Ty installing the programs again using

  • Centering and displaying 100% in browser won't work.

    I believe I followed the instructions that were posted previously and I did some reading about centering a page and displaying the page at 100% but I can't seem to make them work correctly. I might have a conflict or something can you help. I designe

  • IPod touch 3rd generation not charging

    I got the ipod about 4 years ago and now it doesnt charge any more. If I want to charge it I have to push up or down but I only did that once because I dont want to damage it any more. Also awhile ago There was a little piece that came out of the cha

  • Reinstall Acrobat Pro 9 after a hard drive crash?

    So I am sitting here looking at the disk I have and the serial number.  I cannot remember where we bought this and I am not sure I even have that documentation anymore.  All I can recall is that it was 2 licenses per disk.  I do know we did not buy i

  • Change of cost in Sales Order

    Is it possible to make the change in the VPRS value in a sales order? Thanks, ak