Missing "synchronize with DB" button in Entity Object Editor

I am using jdeveloper10g version 9.0.5.1
In the object navigator, when I try to edit an Entity object,
I pick the "attributes" node, and i don't have the "synchronize with DB" button.
the buttons I have are: "new", "new from table", "remove".
How do I synchronize the entity with DB changes???

thanks!!!
why is it that I don't see a "buisness component package" (like I used to see) but only the icon of a java package? Is it a matter of a version of the jdeveloper?

Similar Messages

  • Entity object editor

    i seem to be confused but i cannot access the entity object editor. i am using adf faces and oracle toplink, and from all the examples and tutorials i see online, i cannot access it the same way. how do i reach the entity object editor?

    i am really new to jdev and i used this tutorial:
    http://www.oracle.com/technology/obe/obe1013jdev/masterdetailedit_adftoplink/endtoend_toplink_adffaces.htm

  • Implementing a view Object with Multiple Updateable Dependent Entity Objects

    Hello,
         I want to implement view object with multiple updateable entity object,
         i have refered this link its good https://forums.oracle.com/thread/63721
         here they have explained with 2 table,
         but when we have more then 5 tables and each table have Primary keys , Foreign key , Sequence and  trigger created on it. Then whats steps should i want to fallow.
         if possible some please provide the link or some one help me out how to do this .
         thanks in advance
         cheers

    Has the Advanced View Object Techniques been referred?

  • Problem: View Object with Multiple Updateable Dependent Entity Objects

    I try to implement a ViewObject with 2 updateable entities based on the document:
    http://www.oracle.com/technology/products/jdev/howtos/bc4j/multientityvo.html
    But I get an early NullPointerException:
    As written in the document I overriden the create method in the ViewObjectRowImpl class:
    protected void create(AttributeList attributeList) {
    // The BC4J framework will already have created "blank" entity instances
    System.out.println(getClass().getName()+"create BEGIN");
    LabEventTypeItemImpl newLabEventTypeItem = this.getLabEventTypeItem();
    System.out.println(getClass().getName()+"create 1");
    TariffItemImpl newTariffItem = this.getTariffItem();
    System.out.println(getClass().getName()+"create 2");
    try {
    // Let department "blank" entity instance to do programmatic defaulting
    newLabEventTypeItem.create(attributeList);
    System.out.println(getClass().getName()+"create 3");
    // Let employee "blank" entity instance to do programmatic defaulting
    // passing in new DepartmentImpl instance so its attributes are
    if (newTariffItem == null) // added trace
    System.out.println(getClass().getName()+"create newTariffItem IS NULLLLL");
    // available to the EmployeeImpl's create method.
    newTariffItem.create(newLabEventTypeItem);
    System.out.println(getClass().getName()+"create 4");
    catch (JboException ex) {
    if (newLabEventTypeItem != null)
    newLabEventTypeItem.revert();
    if (newTariffItem != null)
    newTariffItem.revert();
    throw ex;
    catch (Exception otherEx) {
    if (newLabEventTypeItem != null)
    newLabEventTypeItem.revert();
    if (newTariffItem != null)
    newTariffItem.revert();
    throw new RowCreateException(true /* EO Row? */,
    "LabEventTypeItem" /* EO Name */,
    otherEx /* Details */);
    System.out.println(getClass().getName()+"create END");
    The code:
    TariffItemImpl newTariffItem = this.getTariffItem();
    is equivalent in the example to:
    EmployeeImpl newEmployee = getEmployee();
    In my case this.getTariffItem() <=> getEmployee() returns null?
    I get an Exception when I call:
    newTariffItem.create(newLabEventTypeItem);
    Equivalent to:
    newEmployee.create(newDepartment);
    ViewObject partial XML:
    ======================
    <DesignTime>
    <Attr Name="_isCodegen" Value="true" />
    <Attr Name="_version" Value="10.1.2.17.96" />
    <Attr Name="_codeGenFlag2" Value="Access|Coll|Msg" />
    <Attr Name="_isExpertMode" Value="false" />
    </DesignTime>
    <EntityUsage
    Name="LabEventTypeItem"
    Entity="com.photoswing.model.lab.LabEventTypeItem" >
    <DesignTime>
    <Attr Name="_EntireObjectTable" Value="false" />
    <Attr Name="_queryClause" Value="true" />
    <Attr Name="_queryWhere" Value="(((LabEventTypeItem.LAB_EVENT_TYPE_ITEM_ID = TariffItem.LAB_EVENT_TYPE_ITEM_ID)AND (LabEventTypeItem.ITEM_ID = Item.ITEM_ID))AND (LabEventTypeItem.PRINT_SIZE_DPI_ID = PrintSizeDpi.PRINT_SIZE_DPI_ID(+)))AND (LabEventTypeItem.FILM_PRINT_SIZE_DPI_ID = FilmPrintSizeDpi.FILM_PRINT_SIZE_DPI_ID(+))" />
    <Attr Name="_queryOrderBy" Value="Item.ITEM_TYPE_ID,PrintSizeDpi.REQ_MEGA_PIXELS,Item.ITEM_ID" />
    </DesignTime>
    </EntityUsage>
    <EntityUsage
    Name="TariffItem"
    Entity="com.photoswing.model.lab.TariffItem"
    Association="com.photoswing.model.lab.TariffItemLabEventTypeItemFkAssoc"
    AssociationEnd="com.photoswing.model.lab.TariffItemLabEventTypeItemFkAssoc.TariffItemLabEventTypeItem"
    SourceUsage="com.photoswing.model.lab.LabEventTypeItemAndTariffItemVO.LabEventTypeItem"
    Reference="true" >
    <DesignTime>
    <Attr Name="_EntireObjectTable" Value="false" />
    <Attr Name="_queryClause" Value="false" />
    <AttrArray Name="_srcAttributes">
    <Item Value="com.photoswing.model.lab.LabEventTypeItem.LabEventTypeItemId" />
    </AttrArray>
    <AttrArray Name="_dstAttributes">
    <Item Value="com.photoswing.model.lab.TariffItem.LabEventTypeItemId" />
    </AttrArray>
    </DesignTime>
    </EntityUsage>
    Stack trace:
    ===========
    oracle.jbo.RowCreateException: JBO-25017: Error while creating a new entity row for LabEventTypeItem.
         at com.photoswing.model.lab.LabEventTypeItemAndTariffItemVORowImpl.create(LabEventTypeItemAndTariffItemVORowImpl.java:1370)
         at oracle.jbo.server.ViewRowImpl.callCreate(ViewRowImpl.java:353)
         at oracle.jbo.server.ViewObjectImpl.createInstance(ViewObjectImpl.java:2599)
         at oracle.jbo.server.QueryCollection.createRowWithEntities(QueryCollection.java:1048)
         at oracle.jbo.server.ViewRowSetImpl.createRowWithEntities(ViewRowSetImpl.java:1725)
         at oracle.jbo.server.ViewRowSetImpl.doCreateAndInitRow(ViewRowSetImpl.java:1769)
         at oracle.jbo.server.ViewRowSetImpl.createRow(ViewRowSetImpl.java:1749)
         at oracle.jbo.server.ViewObjectImpl.createRow(ViewObjectImpl.java:6230)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:891)
         at oracle.jbo.uicli.jui.JUActionBinding.doIt(JUActionBinding.java:203)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:478)
         at oracle.jbo.uicli.controls.JUNavigationBar.doAction(JUNavigationBar.java:306)
         at com.photoswing.component.JUNavBar.doAction(JUNavBar.java:1114)
         at oracle.jbo.uicli.controls.JUNavigationBar.actionPerformed(JUNavigationBar.java:259)
         at com.photoswing.component.JUNavBar.actionPerformed(JUNavBar.java:419)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
         at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
         at java.awt.Component.processMouseEvent(Component.java:5100)
         at java.awt.Component.processEvent(Component.java:4897)
         at java.awt.Container.processEvent(Container.java:1569)
         at java.awt.Component.dispatchEventImpl(Component.java:3615)
         at java.awt.Container.dispatchEventImpl(Container.java:1627)
         at java.awt.Component.dispatchEvent(Component.java)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
         at java.awt.Container.dispatchEventImpl(Container.java:1613)
         at java.awt.Window.dispatchEventImpl(Window.java)
         at java.awt.Component.dispatchEvent(Component.java)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:458)
         at com.photoswing.view.start.WaitCursorEventQueue.dispatchEvent(PhotoWebshopDesktop.java:3077)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    ## Detail 0 ##
    java.lang.NullPointerException
         at com.photoswing.model.lab.LabEventTypeItemAndTariffItemVORowImpl.create(LabEventTypeItemAndTariffItemVORowImpl.java:1355)
         at oracle.jbo.server.ViewRowImpl.callCreate(ViewRowImpl.java:353)
         at oracle.jbo.server.ViewObjectImpl.createInstance(ViewObjectImpl.java:2599)
         at oracle.jbo.server.QueryCollection.createRowWithEntities(QueryCollection.java:1048)
         at oracle.jbo.server.ViewRowSetImpl.createRowWithEntities(ViewRowSetImpl.java:1725)
         at oracle.jbo.server.ViewRowSetImpl.doCreateAndInitRow(ViewRowSetImpl.java:1769)
         at oracle.jbo.server.ViewRowSetImpl.createRow(ViewRowSetImpl.java:1749)
         at oracle.jbo.server.ViewObjectImpl.createRow(ViewObjectImpl.java:6230)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:891)
         at oracle.jbo.uicli.jui.JUActionBinding.doIt(JUActionBinding.java:203)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:478)
         at oracle.jbo.uicli.controls.JUNavigationBar.doAction(JUNavigationBar.java:306)
         at com.photoswing.component.JUNavBar.doAction(JUNavBar.java:1114)
         at oracle.jbo.uicli.controls.JUNavigationBar.actionPerformed(JUNavigationBar.java:259)
         at com.photoswing.component.JUNavBar.actionPerformed(JUNavBar.java:419)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
         at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
         at java.awt.Component.processMouseEvent(Component.java:5100)
         at java.awt.Component.processEvent(Component.java:4897)
         at java.awt.Container.processEvent(Container.java:1569)
         at java.awt.Component.dispatchEventImpl(Component.java:3615)
         at java.awt.Container.dispatchEventImpl(Container.java:1627)
         at java.awt.Component.dispatchEvent(Component.java)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
         at java.awt.Container.dispatchEventImpl(Container.java:1613)
         at java.awt.Window.dispatchEventImpl(Window.java)
         at java.awt.Component.dispatchEvent(Component.java)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:458)
         at com.photoswing.view.start.WaitCursorEventQueue.dispatchEvent(PhotoWebshopDesktop.java:3077)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    Thanks
    Frederic

    I get the same error on the scott schema:
    protected void create(AttributeList attributeList) {
    // The BC4J framework will already have created "blank" entity instances
    DeptImpl newDept = getDept();
    EmpImpl newEmp = getEmp();
    try {
    // Let dept "blank" entity instance to do programmatic defaulting
    newDept.create(attributeList);
    // Let emp "blank" entity instance to do programmatic defaulting
    // passing in new DeptImpl instance so its attributes are
    // available to the EmpImpl's create method.
    if (newEmp == null)
    System.out.println(getClass().getName()+".create newEmp IS NULL");
    newEmp.create(newDept);
    catch (JboException ex) {
    newDept.revert();
    newEmp.revert();
    throw ex;
    catch (Exception otherEx) {
    newDept.revert();
    newEmp.revert();
    throw new RowCreateException(true /* EO Row? */,
    "Dept" /* EO Name */,
    otherEx /* Details */);
    The trace shows:
    model.CreateDepartmentAndFirstEmployeeRowImpl.create newEmp IS NULL
    Another problem:
    Refreshing Foreign Key Values in New Employees Once Final Department Id is Assigned:
    Number newDeptno = getDeptno().getSequenceNumber();
    doesn't compile getSequenceNumber() unknown.
    I send you a usecase as a zip file.
    The code for Refreshing Foreign Key in is comment at the end of the DeptImpl file.
    Regards
    Frederic
    I send you the

  • Implement a View Object with multiple entity objects

    Hi
    In 'How to' section on the 'otn.oracle.com' (Jdeveloper) web site is tutorial how to implement a View Object with multiple updateable dependent entity objects.
    It allows user to insert an employee and a department at the same time.
    But I would like to change this example to insert a new department only if it does not already exist. How to change this sample?
    Is there any other way to this?
    Thanks
    Regards
    Gorazd

    Once again the structure, sorry.
    ViewObject
    |-ParentEntityObject
    ..|-PId
    ..|-PAttribute
    ..|-CId (FK)
    |-ParentChildAssociation
    |-ChildEntityObject
    ..|-CId
    ..|-CAttribute
    Christian

  • Accessing all rows in Entity Object

    Hi All,
    I have a master-child relationship with ChildVO based on entity object. When user hits on save after making some changes, I would like to pass all rows in master view object and all fetched rows in entity object to a pl/sql api which takes pl/sql table datatypes. I would call this API in AM. So is there any way to access all entity rows of child view object?I tried to use view link accessors but it returns null. I can think of the following way:
    for each row in master view object
    loop
    set current row for master view object. This would execute child vo for that master row.
    then fetch all rows from child vo. populate pl/sql table
    move on to next master vo row.
    end loop;
    Drawback with above approach is that we would excute child object query for every master row. Is there any direct way to access rows in entity object in AM? Any pointers on this would be of great help.
    Thanks in advance,
    Murari

    "and all fetched rows in entity object"
    is not a correct statement to make, EO will always represent a single row of the database record.you will get all the fetched rows in the VO, not the EO.
    Tapash

  • Synchronize with Database on Entity Object re-creates Association

    hi
    Please consider this example application created using JDeveloper 11.1.1.4.0
    at http://www.consideringred.com/files/oracle/2011/MovedAssociationApp-v0.01.zip
    It has an EmpManagerFkAssoc Association which has been moved from the "movedassociationapp.model.entities" package to the "movedassociationapp.model.assoc" package (using the "Refactor - Move..." context-menu option).
    When selecting "Synchronize with Database..." in the context-menu of the Employees Entity Object, and clicking the "Synchronize All" button, this results in JDeveloper re-creating the EmpManagerFkAssoc Association,
    as shown in the screencast at http://screencast.com/t/l7jaoU2C
    - (q1) Is this Association re-creation intended behaviour (if so, please explain, if not, which bug number)?
    many thanks
    Jan Vervecken

    Ferez,
    have you seen this thread in the ADF forum, Cannot 'Synchronize with database' my entity objects ?
    It mentions the existence of a bug that may cause this (though no reference number), and one user posted a workaround they were using.

  • Cannot 'Synchronize with database' my entity objects

    Hello,
    I have successfully created entities in my model using the 'new buisness components from tables' function. But now my database moddel has changed and I would like to synchronize my entities with database to get newest colums, but when right clicking an entity, the 'Synchronize with database' link is greyed and cannot be selected.
    I have a database connection configured in my application resources and I can still import new tables in my project.
    Do you have any idea of what is happening? This is not the case for all my applications. I can still synchronize in some other ones
    Thank you for your help
    Stephane

    Synchronize with the database will be avaialble for the Entity Object
    I think there is a problem with the particular entity that got created when you did the business components out of tables..
    This is not the case for all my applications. I can still synchronize in some other onesif this is not happening with any other EO in any other application.. then you can try
    recreating the EO from the table..
    compare what is the change in between the EO that can synchronize and your current EO that cannot synchronize..
    another option might be to check the application.. if that is havign some hidden property to synchronize..
    last is to go with sameer's approach, to doubt about the table is not proper... in the same applciation create an EO with another table and try to synchronize.. you will get to actually the point where there is a problem..
    good luck.

  • Uix two view-objects on one entity-object synchronize

    Hi All
    I want to add some uix pages to an old project using ADF UIX and Business Components.
    I have an entity object to a table witch about 50 fields.
    Now I create two view objects due to a better performance. One witch seven attributes for the overwiew and one with all attributes for the detail page.
    They are related via a view link.
    I create the overview as a read-only-table and the detail-page as an input-form.
    The proplem is that the synchronization don't work. The detail page shows the first dataset ever.
    Has anyone a solution or a tip where I can found that?
    Is where a performance problem if I use one view-object for both pages?
    Thanks in advance
    Roger

    Use custom DataAction for the first page:
    package controller;
    import oracle.adf.controller.struts.actions.DataAction;
    import oracle.adf.controller.struts.actions.DataActionContext;
    public class Class1 extends DataAction
      protected void validateModelUpdates(DataActionContext actionContext)
         //super.validateModelUpdates(actionContext);
          // put you custom validation here
    }http://www.oracle.com/technology/products/jdev/collateral/papers/10g/ADFBindingPrimer/index.html#usingdataaction
    Message was edited by:
    Sasha
    Message was edited by:
    Sasha

  • Problem with using multiple Entity Objects in a view Object.

    Hi
    Thank you for reading my post
    I have create 3 Business components for 3 of my database tables and now
    I must add 3 tables in a View object so i used Jdeveloper Wizard to create the View Object.
    -I Add Entity Objects which are business components to this view (In Step 2 of the Create Vview Object wizard).
    -In step 3 that I add Attributes all my attributes are marked as Transient
    Can some one explain why it happens?
    I need one of those tables to be updateable and two other tables are not updateable.
    What should should i do to achieve this?
    I should say that tables does not have any database relation (Foreign Key I Mean).
    Thanks.

    Hi user505214
    When you created your VO, on selecting the second EO, you'll note at the bottom of the same page on the wizard/editor, checkboxes for updatable or by reference. By default reference is checked and this will make your second EO's attributes transient.
    In the JDeveloper Developer's Guide for 4GL/Forms programmers, the following sections outline the difference between updatable or by reference:
    7.5 Including Reference Entities in Join View Objects
    27.9 Creating a View Object with Multiple Updatable Entities
    Make sure to read 27.9 if updatable is what you want as it indicates you may need to add some additional code.
    Hope this helps.
    CM.

  • Possible?Multi-Entity View Object with one Entity Object that is Read-only.

    I know this sounds crazy, but I would like to create a multi-entity view object, where one entity object is based on a table in my application (we'll call it "Users", which basically stores the primary key for the person from the institutional people database), and the other table is a entity object based on a view of the institutional people database table (read only access), which we can call "People".
    I know that since no updates will be done to the People table, it really should be a read-only View Object, but I would lose the ability to sort on attributes like Last Name, Hire date, etc, since those would be transient attributes in my ViewObject for the Users. By having People as an entity object, I can then create a multi entity view object and have the ability to join Users to People and be able to sort on the above mentioned fields (like Last Name).
    The problem is that when I use the JDev (I'm currently using 10.1.2.1) AppModule BC4J tester, when I click on the multi-entity view object that I added to the AppModule it gives me an error:
    oracle.jbo.RowCreateException) JBO-25017: Error while creating a new entity row for People.
    ----- LEVEL 1: DETAIL 0 -----
    (java.lang.InstantiationException) null
    I have tried to change all the attributes to updateable in my entity object, but no create method, and I have tried to make them all read-only, but no effect, I get the same error (probably because the People view is read-only in my schema).
    Is there a way to change the entity object so that it will not try to create a new row when it runs the Tester? So that the multi entity view object behaves more like a view link, but gives me the added bonus of being able to sort on the Last Name column from the People table?
    Thanks for any help on this subject...at worst, I will have to use the view link method to get the job accomplished, but it would be "cooler" if this would work!
    Jeremy.

    Steve, thanks for your quick response to my question.
    To answer your questions, I was trying to create the Multi-entity View Object to give me more flexibility when working with my User table, and my People view. The flexibility I desired was that I would be able to sort my Users based on attributes in the People view. This is not possible when the there is only one Entity in my VO, and the People view data are all transient attributes, because they are not in the SQL statement.
    Ultimately, after working with one of my colleagues, we decided to use the approach that you mentioned by creating a read-only VO with the SQL query we want to display to the user (contains both User and People data fields), and then use a different ViewObject when performing other actions on the User Table (such as inserts/updates/deletes). By using the setWhereClauseParam() method in the handleLifeCycle() for the JSP page, we should be able to navigate between the different View Objects, so that the user does not see any difference.
    Thanks! Oh, and by the way, I have read your article you included before, and I have used it many times before to tune my View Objects! Thanks!

  • Problem with database schema objects in the entity object wizard

    Hi All,
    When creating a new entity object, I am facing a problem with database schema objects in the entity object wizard, database schema objects (check boxes for tables,synonyms...) are disabled. Actually I am using a synonym but I am not able to select the synonym check box.
    Can any of you folks tell me how to enable the database schema objects (check boxes for tables,synonyms...).
    Thanks in Advance.
    Raja.M

    Make sure your using rite version of jdeveloper..
    Make sure your using apps schema and check whether your able perform DML operations in the schema vis sql developer.
    --Prasanna                                                                                                                                                                                                                                                                                                                                                                           

  • Extending view object which does not have any entity object associated with

    Dear all
    I am interested in extended on of the standard pages VO object in JDeveloper OA extension
    the standard page is oracle/apps/pos/supplier/....suppSummaryPG
    and one of the view which I am interested to extend is suppSummVO
    the problem is that when I copy xml files and java files from apps server to
    my local jdevelope folder , I am not able to open that suppSummVO, the changes which
    I find from other VO object and this(suppSummVO) object is that, this VO does not have any
    Entity Object associated with it and the only query is return on this VO , is it the reason that
    I am not able to open it Jdeveloper, but the real issue is that how can I extends this type of VO
    in my OAExtension.
    Regard
    Noman

    Its the same way of extending VO with EO's or without EO's.
    Sometimes if the .class files arn't decompiled we get weird jbo errors. So use cavaj/jad to decompile those Impl.class, RowImpl.class files and keep them in the same folder as vo.xml in myprojects and try extending that VO.
    Thanks,
    Ravi

  • Entity object attribute with a list of objects

    Does anyone know how one sets up an entity object that has an attribute with a list of objects as the type? (assuming that's supported)
    as in:
    CREATE TYPE phones AS VARRAY(10) OF varchar2(10);
    Create table suppliers (supcode number(5),
    Company varchar2(20),
    ph phones);
    The SOA Suite in jDeveloper (new Entity Object/attributes etc) has an ARRAY that can point to REF or OBJECT. Neither work. When I try to Create DB Object later from the Entity Object I've created I get an invalid type.

    What you suggested about "validation codes on the VO" is not written on the ADF Documentation.
    I try to blindly/strictly follow best practices (particularly on Validations, using Declartive and/or built in validators) on most ADF documentation and blogs but there are many scenarios on coding some large ADF projects that I think must veer away from the best practices stated on the documentation or maybe add new rules on the documentation depending on how complex an ADF project would be.
    I religiously followed best practices stated on the documentation to use Entity and Attribute Validators when performing validations. What I did was i had created lots of Custom Validators (by implementing JboVAlidatorInterface interface) for each of the attributes on an Entity Object that need validated. So those validator is valid only for one attribute, its not reusable. And those validation codes either have reference to a ViewObject or call some PL/SQL procedure. So at some point are codes became messy.
    Ultimately the whole project became harder to manage when the codes became large. Now I am trying to refactor the whole application by separating it into project/package and I am hoping to do it with little Re-coding as possible.
    Hope to get your opinion on this one.
    regards,
    Anton

  • Validation of attribute in Entity Object with List Rule Type

    hi all
    I have an entity "currncy" and I want to make
    a validation in entity level on its attribute "Isdefaultcurrency"
    which is boolean.
    Entity Object : Currency
    attributes :
    1. Currencyid DBsequence
    2. Currencyname String
    3. Isdefaultcurrency, Boolean, CheckBox
    Rule Type : List
    Operator : In
    List Type : Query Result 'select ISDEFAULTCURRENCY from currency where ISDEFAULTCURRENCY=1'
    I want when user insert in table, validation checks the attribute 'Isdefaultcurrency'
    was true then show the error message that there was default currency and if you
    want to set it to true (or default) you must change another record that was true
    and uncheck it then back to current record and will make it true and
    there is one record in my table that its attribute 'Isdefaultcurrency' must be true
    this validation that I used , it does not work correctly and it allows to enter 2 records with
    true value for Isdefaultcurrency. In fact I want when User Enter the First record and
    set the Isdefaultcurrency to true then enter the second record and set the Isdefaultcurrency
    to true the error message will be shown.
    pleas explain it
    Edited by: Marzieh on Jan 30, 2012 9:43 PM

    Is it that you want to only allow one record in the table to have isdefaultcurrency='1'?
    yes , that is correct . I used Oracle DataBase .
    DECODE(isdefaultcurrency, 1, 1, null) please explain about it.
    isdefaultcurrency attribute has boolean Type with 0 or 1 values.
    I would like to show an error if check box was checked for the second time. The idea is that just
    one check box should be checked.
    thanks for your answer

Maybe you are looking for