Adf bc jar for base entity classes and extending them existing  project

Hi,
I am using jdev 11.1.1.0 and have created a base workspace/project and adf jar for my base entity classes.
1. I can consume this base adf bc jar in a separate new consuming workspace and create VO based on base bc classes or create new EOs that extend base bc entity classes.
2. Furthermore, for an existing consuming project that earlier included src/ of base entity (BC components), i can remove the dependency on bc source and bring in this new adf jar and everything including the view controller and the service/datacontrol works fine.
The issue i am running into is as follows.
- In the existing project (#2) above i try to create a couple of entities based on entities in my base jar; associations are automatically brought in. Note i am not overriding any attributes. My intent here is to generate .java and implement some code.
- I then try to make my existing VOs based on the newly extended entity (VO overview->Entity Objects-> Shuttle NewEntity from Available to Selected)
- I then try to remove the old EO from selected under VO overview->Entity Objects->Shuttle OldEntity from Selected back
- I get a warning dialog box that says something to the effect that some viewlinks are dependent on these old EOs in this consuming project.
- I tried to laboriously analyzed dependencies and it this dialog box does not make any sense as I have already extended EOs and the tooling should be able to let me use these
My questions
- Why I am not able to remove old entities from VO dependencies
- Is it ok to leave the old EOs in "Selected" along with the newly extended EO ? What are the implications for this?
- I also thought about extending base associations, but did not go anywhere.
In general, I am ok with consuming an ADF BC jar that has entities etc. but not clear about removing dependencies of base EOs on VOs when entities are extended and consumed in a pre-existing project that used base entities.
I can send a project if any PM is willing to take a look at it.
Thanks,
ps:
I have already gone over the following info
http://technology.amis.nl/blog/215/organization-of-bc4j-domain-eo-and-business-vo-package
.. wants to create an enterprise data model in BC4J, reflecting the Enterprise Data Model set up in the RDBMS. All (or at least most) business rules will be implemented in the Middle Tier – to take the load of the database and also allow developers not comfortable with PL/SQL to define and maintain the business rules. It is clear that this means that all applications that need to access – and manipulate – the database, need to go through the BC4J foundation layer. Martijn wants to define the Entity Objects – and their business rules – only once and share that definition between different projects. Each projects can create its own ViewObjects on top of these shared Enterprise Entity Objects.
http://radio-weblogs.com/0118231/2005/09/29.html
I am currently working on a project for a partner where we will be using ADF BC as our model layer for a large application. In order to keep the footprint of each application module down to a reasonable size, we are intending to create a number of separate 'root' application modules for each functional area of the application. Within, these 'root' application modules we will then use nested application modules to further partition the application. All of the application modules will be accessing the same datasource and will need access to the same database objects.
In order to separate our code between the development team and into function areas, our initial thoughts were that we would create an ADF BC model project containing Entity Objects for all of the database tables e.t.c. as these are common amongst all functional areas. We have configured all of the EOs for validation rules, defaulting values and extending doDML() as appropriate. Happy at this stage we then created a simple .jar file to deploy all of the definitions. Upon creating a new ADF BC project for each functional area we added the jar file as a library import into the new project. However when we the tried to create some new View Objects via the JDev Wizard we were unable to see the imported Entity Objects.
Is the only way to share Entity Object definitions between different ADF BC projects to manually copy the source definition files into the new projects src directory? Since this would mean multiple copies of the same components, it could prove to be a maintenance nightmare.Is there a way of doing it without creating multiple copies of the same object definitions?
The developer is spot on in their ideas of layering and reuse, and even has created a library for their reusable entities. This last step is not something everyone thinks to do. The missing step is known as "importing" components, so with that one extra bit of knowledge under his belt, he should be able to do exactly what he envisions. My little article called Difference Between Adding and Importing Business Components tries to explain the difference and gives the menu options to choose to perform the importing.
Difference between adding and importing BC4J
http://radio-weblogs.com/0118231/stories/2005/08/11/differenceBetweenAddingAndImportingBusinessComponents.html
Working with Libraries of Reusable Business Components
http://download.oracle.com/docs/cd/B32110_01/web.1013/b25947/bcadvgen.htm#CHEFECGD

Hi,
since you followed the OC4J developer guide I think this question might be better handled there as well
OC4J
So in case you don't get an answer here on the forum, try it on the OC4J forum
Frank

Similar Messages

  • The value should be set for Base image URL and Image file directory

    Hi experts
    Now customer has the following issue.
    XML Publisher concurrent request, using RTF layout template with LOGO, does not generate the LOGO for Excel output.
    but in output formats PDF, it is shown normally.
    from the debug log, we can found the following error message
    ======
    [051812_054716051][][ERROR] Could not create an image. Set html-image-dir and html-image-base-uri correctly.
    ======
    so I tell the customer to do the following action plan.
    1. in XML Publisher Administrator resp > Administration expand the HTML Output section.
    2a. enter a value for 'Base image URI'
    2b. enter a value for 'Image file directory'
    Customer set the value as following and retest this issue,but he found the issue is not solved.
    Base image URI: /u01/r12/ebssnd/apps/apps_st/comn/java/classes/oracle/apps/media/XXSLI_SONY_LIFE_LOGO.gif
    Image file directory: /u01/r12/ebssnd/apps/apps_st/comn/java/classes/oracle/apps/media
    I verified 'Base image URI' and 'Image file directory' settings:
    1) Change output type to HTML.
    2) Click the Preview.
    but the image is correctly displayed on HTML, so I think the issue is caused by user's uncorrectly setting of the base image URL and/or image file directory
    but could anyone give me some advice on which value should be set for Base image URL and Image file directory
    Regards
    shuangfei

    First thing to do is to edit the post and use some tags to format the code as it is unreadable and too much!
    Read the FAQ (https://forums.oracle.com/forums/help.jspa) to find out how to do this.
    Next we need to know the jdev version you are using!
    As the code is generated I would first try to generate it again after the db change.
    Timo

  • How do I reorder songs in a playlist in the new itunes??? I can no longer just click and drag. When I click, it doesn't move!!!! Need help ASAP- trying to prepare for an aerobics class and need songs in a specific order!

    How do I reorder songs in a playlist in the new itunes??? I can no longer just click and drag. When I click, it doesn't move!!!! Need help ASAP- trying to prepare for an aerobics class and need songs in a specific order!

    Vera,
    Use View > View Options, and set 'Sort By" to "Manual Order."
    Then you will be able to drag-n-drop songs up and down the list.

  • I have old video clips in Photoshop Elements Organizer v12 for Mac.  I want to divide some of those clips in Organizer.  I can do that in Premiere Elements 12 and save them as "Projects" - but how do I get the divided clips back into Organizer?

    I have old video clips in Photoshop Elements Organizer v12 for Mac.  I want to divide some of those single clips into 2 or 3 separate clips, each shown separately in Organizer.  I can divide the clips in Premiere Elements Editor 12 and save them as "Projects" - but I can't find any way to get those divided clips back into Organizer.  Does anyone know whether that can be done?  Many thanks for your thoughts.

    What about Google Drive? And just share the folder with the family members.
    Erick

  • Is it OK to use USB 2.0 connection for Glyph external drive and Mac Pro as project drive?

    Is it OK to use a USB 2.0 connection for Glyph external drive and Mac Pro as project drive? I was told by Sweetwater tech support to use Firewire, but both the FW400 and FW800 connections crash my audio interface software mixer (Presonus' "Universal Control" software).
    Both Firewire connections also create a 10 second hang for each Command-Save that I do.
    USB 2.0 for the external drive seems to be working so far, but is there some reason I should be wary of using this as my go-to project drive? In other words, I am imagining that there was probably some definite reason that the tech support guy mentioned not to use it. But maybe not. It's a brand new Glyph. In any event, it's nice to have the 10 second hang eliminated, and I was just looking for some advice, since digging into the Presonus software issue could take some time.

    If you have a mac pro, why not stick the external HDD inside via one of your many SATA cables & have it run 9 times faster than your USB?
    Or stick a HDD CADDY in your mac pro, so you can slot in a full sized 3TB HDD for recording, and when you are done, pull it out & slip it in an external enclosure if you need to take it places?

  • Is heap memory is particular for a workprocess?and extended memory too?

    Is heap memory is particular for a workprocess?and extended memory too?
    All the while I need to know is :is more than one workprocess can be in Priv mode?

    Yes - heap is workprocess exclusive memory.
    Extended memory is shared on the instance.
    Yes - more than one WP can go to PRIV mode.
    Markus

  • When we will go for an abstract class and when we will go for an interface?

    it's always some what confusing to choose an abstract class and an interface,can anybody post a suitable answer for this.

    jwenting wrote:
    with experience and the insight it brings, you will know which to use when.
    Without it, it can't be explained.
    More often than not there's no X OR Y anyway.It's fortunate that there are posters here who possess the insight and experience necessary to explain this. The principal differences between an abstract class and an interface are,
    1. An abstract class can carry implementation, whereas an interface cannot.
    2. An abstract class is singly inherited, wheras an interface is multiply inherited.
    So use an abstract class when the implementation it can carry outweights the fact that it cannot be multiply inherited That's the gist of it.
    The inheritance relationship where this happens is when the supertype is a general concept of which all potential subtypes are special cases. This is called a specialization (or sometimes a generalization) relationship. For example Apple and Banana are Fruit. Or Car and Bike are Vechicle. The Fruit and Vechicle supertypes are general concepts of which their subtypes are special cases. In this case make Fruit and Vechicle abstract classes because the subtypes will benefit from a shared implementation.
    If you don't have a clearcut specialization/generalization relationship make the supertype an interface. An example could be the Comparable supertype. The potential subtypes aren't supposed to be specializations of the Comparable concept, they're suppose to become Comparable (and make this property an integral part of their being). This is not a specialization/generalization relationship. Instead the supertype is intended to add character to the subtypes. The subtypes are unlikely to benefit from an inherited implementation. So make Comparable an interface.

  • List display for ALV using class and methods

    Hi friends
    I want the list display for the ALV using Class and methods
    which class and methods i can use.
    Here we can't use the REUSE_ALV_LIST_DISPLAY and also GRID
    I was done GRID display using class and methods but i want only list display for using class.
    plz Give me sample code of list display not for grid.
    Thanks
    Nani.

    hi
    please check with this code...
    declare grid and container.
    DATA : o_alvgrid TYPE REF TO cl_gui_alv_grid,
    o_dockingcontainer TYPE REF TO cl_gui_docking_container,
    i_fieldcat TYPE lvc_t_fcat,"fieldcatalogue
    w_layout TYPE lvc_s_layo."layout
    If any events like double click,etc., are needed we have to add additional functionality.
    call the screen in program.
    Then , create the container as follows
    IF cl_gui_alv_grid=>offline( ) IS INITIAL.
    CREATE OBJECT o_dockingcontainer
    EXPORTING
    ratio = '95'
    EXCEPTIONS
    cntl_error = 1
    cntl_system_error = 2
    create_error = 3
    lifetime_error = 4
    lifetime_dynpro_dynpro_link = 5
    others = 6.
    ENDIF.
    CREATE OBJECT o_alvgrid
    EXPORTING
    i_parent = o_dockingcontainer.
    Build the fieldcatalog
    create a output structure in SEll for the ALV output
    CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
    EXPORTING
    i_structure_name = <alv output>
    CHANGING
    ct_fieldcat = i_fieldcat[]
    EXCEPTIONS
    inconsistent_interface = 1
    program_error = 2
    OTHERS = 3.
    IF sy-subrc <> 0.
    MESSAGE i030."Error in building the field catalogue
    LEAVE LIST-PROCESSING.
    ENDIF.
    *If you need to modify the field catalog,modify it using field sysmbols
    *setting the layout
    w_layout-grid_title = title.
    w_layout-zebra = 'X'.
    then displaying the output
    CALL METHOD o_alvgrid->set_table_for_first_display
    EXPORTING
    i_save = 'A'
    is_layout = w_layout
    CHANGING
    it_outtab = i_output[]
    it_fieldcatalog = i_fieldcat[]
    EXCEPTIONS
    invalid_parameter_combination = 1
    program_error = 2
    too_many_lines = 3
    OTHERS = 4.
    IF sy-subrc <> 0.
    MESSAGE i032 ."Error in Displaying
    LEAVE LIST-PROCESSING.
    ENDIF.
    *After that in PAI of the screen, you need to free the *object while going back from the screen(according to *your requirement)
    MODULE user_command_9001 INPUT.
    CASE sy-ucomm.
    WHEN 'EXIT' OR 'CANC'.
    PERFORM f9600_free_objects:
    USING o_alvgrid 'ALV' text-e02,
    USING o_dockingcontainer 'DOCKING'
    text-e01.
    LEAVE PROGRAM.
    ENDCASE.
    ENDMODULE. " USER_COMMAND_9001 INPUT
    *in the program, write the follwoing code
    FORM f9600_free_objects USING pobject
    value(ptype)
    value(ptext).
    DATA: l_objectalv TYPE REF TO cl_gui_alv_grid.
    CASE ptype.
    WHEN 'ALV'.
    l_objectalv = pobject.
    IF NOT ( l_objectalv IS INITIAL ).
    CALL METHOD l_objectalv->free
    EXCEPTIONS
    cntl_error = 1
    cntl_system_error = 2
    OTHERS = 3.
    CLEAR: pobject, l_objectalv.
    PERFORM f9700_error_handle USING ptext.
    ENDIF.
    WHEN 'DOCKING'.
    DATA: lobjectdock TYPE REF TO cl_gui_docking_container.
    lobjectdock = pobject.
    IF NOT ( lobjectdock IS INITIAL ).
    CALL METHOD lobjectdock->free
    EXCEPTIONS
    cntl_error = 1
    cntl_system_error = 2
    OTHERS = 3.
    CLEAR: pobject, lobjectdock.
    PERFORM f9700_error_handle USING ptext.
    ENDIF.
    WHEN 'CONTAINER'.
    DATA: lobjectcontainer TYPE REF TO cl_gui_container.
    lobjectcontainer = pobject.
    IF NOT ( lobjectcontainer IS INITIAL ).
    CALL METHOD lobjectcontainer->free
    EXCEPTIONS
    cntl_error = 1
    cntl_system_error = 2
    OTHERS = 3.
    CLEAR: pobject, lobjectcontainer.
    PERFORM f9700_error_handle USING ptext.
    ENDIF.
    WHEN OTHERS.
    sy-subrc = 1.
    PERFORM f9700_error_handle USING
    text-e04.
    ENDCASE.
    ENDFORM. " f9600_free_objects
    FORM f9700_error_handle USING value(ptext).
    IF sy-subrc NE 0.
    CALL FUNCTION 'POPUP_TO_INFORM'
    EXPORTING
    titel = text-e03
    txt2 = sy-subrc
    txt1 = ptext.
    ENDIF.
    endform.
    also check with this
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVALV/BCSRVALV.pdf
    Hope this helps
    if it helped, you can acknowledge the same by rewarding
    regards
    dinesh

  • FM/BAPI for assigning a class and value instead of manualy doing in IE02

    hi guys,
    i need a FM/BAPI which will allow me to take input as equipment number and assign the class and value for it as done manually in IE02.
    Input should be equipment number.
    POINTS will be given.

    Hi
    I hope this thread can help you
    Characteristic Value
    Re: Equipment Characteristic Value
    Change Equipment Using Transaction IE02
    Regards
    pavan

  • FM/BAPI for assigning a class and value for the class instead of manually d

    Hi guys,
    Instead of manually adding equipment class and assigning value for the class added can i get a FM or BAPI.
    this is for transaction IE02.
    rewards will be given.

    Hi
    I hope this thread can help you
    Characteristic Value
    Re: Equipment Characteristic Value
    Change Equipment Using Transaction IE02
    Regards
    pavan

  • Tools for generating Entity Classes

    Hi ,
    I am new to EJB 3.0 Entity Beans .
    I am finding it hard to develop a Entity Class .
    Please let me know if there are there any Tools that will generate an ENtity class depending upon the database table ??

    Hi!
    Most IDEs like Netbeans and Eclipse can generate entities based on existing database schemas, but imho it's much more usefull to write the first few entities by yourself. It's a bit more difficult, but at least this way you will learn what each annotation does, where they can be placed and what attributes you can set on them.
    Once you have a good general foundation you can skip this process by autogenerating these classes. But that's just my opinion.
    Some examples:
    Eclipse
    Netbeans
    Btw. there are no entity beans in EJB 3.0. These are plain old java classes, thus they are called simply entities to avoid confusion with the entity beans used in previous ejb versions.

  • New business scenario for reapir from customer and sending them to vendor.

    Hello team,
                          We have a scenario where we need to configure in the system -
    We  recieve a material from my customer for repair.We need to send this to my vendor who will repair  it and send them back to Us. On this we  recieve revenue from the customer and pay i pay half amount my vendor for the service.
    We are following above scenario in SAP as
    In the first step
    The production team create a serviece order in IW31 for the material that need to send to the vendor, which was recieved from the customer. When service order is created in the back end a Purchase requisition is created.
    In next step we  created a  PO w.r.f to the above PR and  we need to send this  to vendor on subcontracting so that we can track the material from him after the repair.
    The problem is --- When PR is created automatically during serviece order creation (iw31) we are unable to create Po with Item category L (subcontracting) because PR is not created with L.We are even unable to change L in  PR since it is created automatically at the background.We ried to change the field at document type in spro. But no luck.
    Pls let us know is there any other business process where we can handle this situation or any technical help to change the PR.
    Regards,
    L.chaitanya.

    Hi,
    please work out in this way...
    It can be done Using PM02 and PM03 control keys. Select the operation row select the External button in the bottom u will find Sub con check box u can click it .The prerequisities are create a material BOM in the bom as L item select a row and click the item which will be near to the header cap 2nd tab status/long text click it .Mat. Provision Ind select Lor X if it is not available go to IMG setting.Plant maintenance ->Master Data in Plant Maintenance and Customer Service->Bills of Material->Item Data->Define Material Provision Indicators, K&L will be standrad create S Rework Material,XRework Material from Subcontrmake a tick mark in Recursivity of Subcontracting Component and save it . while creating the material to the operation to be assigned from bom then in the component select the row go to the general button in the bottom then Mat. Prov. Ind will be there select rework material the system allows you to proceed further . save the order then check the PR it will be Account assignment will be F and Item categeory will be L selected automatically.
    Then create PO then do MB1b (prerequsitie the material should have stock)using PO reference( movement type 541) the it will be moved to the vendor stock (check with mmbe)
    Aganist PO Material sent to the vendor .While doing Goods Recipt do with MB01with movement type 101, now u can check the stock in mmbe it will be in storage location...
    Kuber

  • I just purchased 2 ipod touch for my kidz.  and registered them both with my email.  I didn't know every text message I receive, they too would get on their IPod Touch.  HOw do I change this? And do I need to contact a Representative to add them

    i just purchased 2 ipod touch for my kidz (9 & 10 yr. old) .  and registered them both with my email.  I didn't know every text message I receive, they too would get on their IPod Touch.  HOw do I change this? And do I need to contact a Representative to add their own emails....?

    Can you connect to a wifi source on the device? Enable wifi in settings on the device itself. If you don't have wifi at home, there may be a local hotspot you can use for this.
    The reason this happens is carriers don't want people downloading huge files that would slow their network as well as eat up your data plan.

  • Howto create a powershell script to search the C drive for any *.pst files and copy them to a single directory

    I have a bunch of people who are saving their pst files all over the place. how do I write a script that does the following
    searches the C:\ drive for *.pst and copies them all the E:\pstfiles

    Hi,
    How about using below command:
    Move-Item c:\*.pst E:\pstfiles -force
    For more details about move-item, I would like suggest you use get-help command:
    get-help move-item
    In addition:
    Using the Move-Item Cmdlet
    http://technet.microsoft.com/en-us/library/ee176910.aspx
    Regards,
    Yan Li
    Yan Li
    TechNet Community Support

  • Last week I paid for two tv episodes and watched them outside on my projector.  This week I can't do that. Same show. Purchased it. But get a message about it being an unauthorized device. What happened in one week. I

    Last week I paid for 2tv episodes and watched them outside  yesterday tried same using my projector and wasn't allowed. Same show?  Can still watch old ones?

    Similar issues here.
    I purchased five movies for download and having nothing but problems getting them downloaded. I keep receiving error messages and the download stops and I have to restart it, just to get another minute worth of download with each restart. Now Apple has my money and I have nothing.

Maybe you are looking for