How change JhsModel - FK FlexItemDefinition- FlexItem cascade delete?

JHeadstart 10.1.3.2
We are using FlexItems in our application.
The JhsModel implementation, shipped in Jar file jhsadfrt-10.1.3.jar, contains the underlying ADF BC objects for the FlexItem functionality.
We would like to change the functionality somewhat: when the user removes a flex item definition, we want to allow that and have all flexitems (instances of that definition) removed through a cascade delete. Unfortunately, the Associations/EOs in the JhsModel have not been set up that way.
1) is there a specific reason why you chose the on delete restricted implementation or why we should not want to change that?
2) what is a good strategy for making that change? (unzipping the jar, editing the xml files, rejarring?)
thanks for your help
Lucas

Lucas,
1. No good reason, we will change this for release 11.
2. I would not recommend to change the jheadstart jar file. ADF Business Components has a mechanism called substitutions that you can use to specify your custom association. ALternatively, you can change the action behind the delete button and have it call an application module method that first deletes the children.
Steven Davelaar,
JHeadstart Team.

Similar Messages

  • Can Designer handle Cascade Delete w/ Recursion?

    Hello,
    Does anyone know if Designer client Forms have a problem doing recursive relationships set to Cascade Delete in the FK? No problem on the server side code but when we try to generate the form since changing the recursive FK to Cascade Delete we get the error:
    CDG-01131 ERROR: Module <form name>: Recursion found in referential integrity rules (foreign key <FK> on table <table>)
    We are using Designer 6i Patch 4.1.1 and Developer 6i_R2 Patch 7
    We are planning to upgrade soon to 4.5 and patch 10.
    Thank you for your input!

    You may override getQueryHitCount on the ViewObject
    and use a custom query to return the
    estimatedRowCount using the right query for your
    target db.But I've checked SQL92 in my connection and it seem this isn't legal syntax.
    Alternatively you may provide a custom SQLBuilderImpl
    extending 'SQL92SQLBuilderImpl' and provide a custom
    query by overriding the method
    public String getQueryHitCountSQL(RowSet rs)We've solved this case by doing the cacade delete in the database so no middle-tier logic is required.
    However, this is not the end of our SQL92 problems. We're trying to get outer-joins to work using SQL92 syntax and a similar "SELECT * FROM (SELECT..." problem pops up.
    See
    Outer joins in non-Oracle RDBMS
    Tony.

  • I tried to import a video into iMovie. Its says their is not enough space on the destination disk. I deleted many projects, and events. Nothing changed. What files do I delete and how?

    I tried to import a video into iMovie. Its says their is not enough space on the destination disk. I deleted many projects, and events. Nothing changed. What files do I delete and how?

    Hard drive full or near full:
    You are going to have to delete, move or archive your data to regain hard drive space.
    Have you emptied your iMac's Trash icon in the Dock?
    If you use iPhoto, iPhoto has its own trash that needs to be emptied, also.
    If you use Apple Mail app, Apple Mail also has its own trash area that needs to be emptied, too!
    Other things you can do to gain space.
    Delete any old or no longer needed emails and/or archive older emails you want to save.
    Look through your Documents folder and delete any type of old useless type files like "Read Me" type files.
    Again, archive or delete any old documents you no longer use or immediately need.
    Uninstall apps that you no longer use. If the app has a dedicated uninstaller, use it to completely uninstall the app. If the app has no uninstaller, then just drag it to the OS X Trash icon  and empty the Trash.
    Download an app called OnyX for your version of OS X.
    When you install and launch it, let it do its thing initially, then go to the cleaning and maintenance tabs and run all of the processes in the tabs. Let OnyX clean out all web browser cache files, web browser histories, system cache files, delete old error log files.
    Typically, iTunes and iPhoto libraries are the biggest users of HD space.
    If you have any other large folders of personal data or projects, these should be moved, also, to the external hard drive and then either archived to disc and/or deleted off your internal hard drive.
    You may have to Purchase an external FireWire or Thunderbolt hard drive to move these files/data off of your internal drive to the external hard drive and deleted off of the internal hard drive.
    Good Luck!

  • How can I keep my audio track, delete a short segment of video, and reinsert a new video clip, without changing the audio with the way it lines up with the original video?

    How can I keep my audio track, delete a short segment of video, and reinsert a new video clip, without changing the audio with the way it lines up with the original video?

    If you have either iMovie 09 or iMovie 11 you can do this easily using the Cutaway feature.
    Go to iMovie/Preferences and make sure that the Advanced Tools are enabled.
    Now you jut drag and drop the 2nd clip onto hte first clip at the frame where you want the Cutaway to start. A popup menu will appear. Choose Cutaway.
    Here is a good Tutorial.
    If you have iMovie 08, let me know. There is a way to do it, but it is more complex.

  • Urgent :: How to do Cascade delete in OA Framework??

    I have built a employeeSearch page. The VO is based on only one EO that is EmployeeEO. This emp_id is referred in 4 other tables.
    what i want to do is ---
    when i delete the employee from employee Search Page. the corresponding records in other tables must get deleted.
    Can i do a Cascade delete over here.
    Please help.

    Use a pl/sql api to do the cascaded delete and call it from OAF.
    --Shiv                                                                                                                                                                                       

  • Problem with cascade delete and remove bean

    I am working with two entity beans that map to two tables that have a foreign key relationship. Table B has a foreign key to A and in the database that foreign key is set for cascaded updates and cascaded deletes.
    The problem occurs when the the sytem first tries to remove bean 1 (mapped to table A) and then remove bean 2 (mapped to B) where bean 2 is associated with bean 1 with a foreign key relationship. The first remove works but then when it tries to remove bean 2 it throws a very ugly "CORBA TRANSACTION_ROLLEDBACK 9998" Maybe exception. My guess is that the reason is because bean 2's reocrd in the database was deleted when bean 1 was removed but the 'bean object' was not removed from the container.
    When I go into our Application Server and look at how it see's the tables, it show the wrong relationship. It shows a restrict delete and a restrict update realationship.
    My question is, am I wrong to think that this is a application server problem or a configuration problem? It seems to me that attempting to remove a non-existant record should not cause an error. It won't cause any SQL exceptions. Is this a flawed viewpoint? As a work around I made sure that the dependent records are deleted first but it kind of defeats the point of cascaded deletes.
    We have a limited number of support calls, should I use one or am I at fault here?

    If the database removes the record from the second
    table, why is the system trying to remove it once
    again? You should try to remove an entity from a
    single place, should it be the database or the
    application. Don't try to remove it twice.
    Regards,
    DimitarI could do this but it is a huge pain in my ass. The problem is that you might want to remove the dependent bean without removing it's parent. The object structure is a little questionable, I'll admit that. It is, as they say, the eleventh hour and I can't really change that now.
    The way this work is that the server gets a list of objects marked either as new, modified, or deleted. It then relates those changes back to the database.
    In this case we have two lists(which makes me realize where the class structure sucks.) In order to do what you suggest I would have to get all the deleted parent objects and then search all the deleted child objects for ones that have the parent's key in them.
    It would be prefferable to fix the class structure but again this is not an option.
    Anyone want to answer the question I asked?

  • Cascade delete in many to many association

    Hi All,
        I have a usecase, there is an association with many to many cardinality  between 3 EO's. If i delete  any record in master, the corresponding childs all should delete.
        So appreciate if any alternatives on above usecase. Thanks in advance

    Hi,
    cascade delete is a function of the database. When you enable cascade delete for an entity operation then this only produces the proper SQL code for deleting a data object. If you have a many-to-many relation then this means you have multiple master and child records, which I think makes your "If i delete  any record in master, the corresponding childs all should delete" impossible.
    for what its worth, please read
    Creating a Business Domain Layer Using Entity Objects - 11g Release 2 (11.1.2.3.0)
    to learn how to parse and delete detail records  from an entity object
    http://docs.oracle.com/cd/E35521_01/web.111230/e16182/bcentities.htm#CEGJAFCF
    The last document is about posting orders (e.g. create a master record before you create detail records). However, with a few changes you can reverse this to perform a delete operation (just add this code to the entity impl classes of the entities so they delete their child objects
    Frank

  • How to poll child records using Physical delete

    Hi, could anyone please help me how to poll child records using the Physical delete polling strategy?I have one parent table and one child table with foreign key constraint with 'on delete cascade'. I understand that physical delete polling strategy does not poll child records and can be polled by configuring the toplink_mappings.xml. how to confure this file in order to poll the child records.
    sample tables are:
    student(stud_id,name,gender,age), stud_id beeing the primary key and
    stud_marks(stud_id,exam,marks1,marks2,marks3), exam beeing the pk, and stud_id, the foreign key with on delete cascade.
    I have set the property DeleteDetailRows="true" in the wsdl.
    Getting a warning:
    'TopLink found problems in PhyDelChildRecordsPoll. Please ensure that these are corrected before deployment.'
    TopLink Map 'PhyDelChildRecordsPoll' -> One of the packages is incomplete.
    Package PhyDelChildRecordsPoll -> One of the descriptors in this package is incomplete.
    Descriptor Student -> Some mappings are incomplete.
    Mapping studMarksCollection -> Method accessors have not been selected.
    End TopLink Map 'PhyDelChildRecordsPoll'
    Thanks.
    Edited by: Help please on Nov 5, 2009 2:39 PM

    Simple solution is to run the query I have given for all child tables or to try a single query for all child tables withj something like:
    select <parent_key>
    from <parent_table>
    where <parent_key> in
              (select <foreign_key_1> from <child_table_1> union
               select <foreign_key_2> from <child_table_2> union
               ... );More complicate solution could be to change the foreign key constraints to cascade DELETE on parent table to child tables:
    SQL>
    SQL> create table p(x int primary key);
    Table created.
    SQL> create table c1(x1 int);
    Table created.
    SQL> create table c2(x2 int);
    Table created.
    SQL>
    SQL> alter table c1 add constraint fk1 foreign key(x1) references p;
    Table altered.
    SQL> alter table c2 add constraint fk2 foreign key (x2) references p;
    Table altered.
    SQL>
    SQL>
    SQL> insert into p values(1);
    1 row created.
    SQL> insert into c1 values(1);
    1 row created.
    SQL> insert into c2 values(1);
    1 row created.
    SQL> commit;
    Commit complete.
    SQL>
    SQL> alter table c1 drop constraint fk1;
    Table altered.
    SQL> alter table c2 drop constraint fk2;
    Table altered.
    SQL>
    SQL> alter table c1 add constraint fk1 foreign key(x1) references p on delete cascade;
    Table altered.
    SQL> alter table c2 add constraint fk2 foreign key (x2) references p on delete cascade;
    Table altered.
    SQL>
    SQL> delete p where x=1;
    1 row deleted.
    SQL> commit;
    Commit complete.
    SQL> select * from p;
    no rows selected
    SQL> select * from c1;
    no rows selected
    SQL> select * from c2;
    no rows selected
    SQL>Edited by: P. Forstmann on 27 oct. 2011 14:01

  • Cascade Deletes

    Could anyone please suggest how the following could be done programatically i.e without using database triggers?
    I have a Java form created using InfoSwing components where the Master-Detail relation is nested to several levels ( like Master-Detail-Detail ). When a user deletes a record in the master table by pressing the delete button in the navigation bar, the records the detail tables should also be deleted.
    Thanks.

    Try using the on delete cascade with your foreign key constraint
    and drop the trigger. Mutating table errors are normally caused
    by using row level triggers on constraining tables which change
    as a result of an insert, update, or delete of the master table.
    These triggers can not issue dml against the table that is
    "mutating" (changing), which is the primary table or child table
    if constraint is created using cascade. This is a general rule.
    See specific rules in oracle documentation if you are serious
    about using triggers.
    Tom Niderost (guest) wrote:
    : How do I perform a cascade delete in Oracle? I tried using
    : "Delete on Row" triggers to delete child data, but when the
    child
    : table had a "Delete on Row" trigger, I got a "Mutating Table"
    : error. Help!
    null

  • How do I keep emails from being deleted on my iPhone 6? Emails get deleted from phone when I startup desktop computer and they are downloaded from sever. Is POP3 no longer supported on IOS 8.1?

    How do I keep emails from being deleted on my iPhone 6? Emails get deleted from phone when I startup desktop computer and they are downloaded from sever. Is POP3 no longer supported on IOS 8.1?

    Have you seen this?
    Using a POP account with more than one device - Apple Support
    A better solution is if your email provider uses IMAP. IMAP sync email folders between multiple devices. Meaning any device will receive the email, all sent email can be seen on the devices. If you delete email from one device the email is deleted from all the other devices. Check with your email provider to see if they offer IMAP services.
    If they do not your choices are to 1) configure email on the PC to keep Mail on the mail server or 2) change email providers to something like Gmail or Outlook.com (as examples). FWIW I use Cox IMAP email and fully sync email between a Win 8.1 Update 1 laptop, a Win 7 desktop, an iPad 4, an iPhone 4 and an iPhone 5S.

  • How do I get Itunes to automatically delete nonexistant songs???

    How do I get Itunes to automatically delete nonexistant songs??? I am referring to the songs that remain on itunes after you change their name or directory or whatever. It takes too long to delete individual songs. Is there some sort of plug-in available? THANKS!!

    10000 responses and you didn't know there was a script that does this?
    It's a Windows specific script (not iTunes).
    On a Mac, we just use Applescript to do this type of stuff. I'm surprised you didn't know this.

  • Cascade delete of products in APO

    Hi,
    I´m wondering if there are predefined ways for deleting a product and all it´s dependencies totally in APO. (Cascading deletion). I.e. setting a flag in the product master and getting rid of all connected PPM:s, location/product split, quota arrangements etc etc... Anybody knows how to do this efficiently?
    BR
    Karl

    Hi,
    I wish SAP has provided something like this.
    UNfortunately there is no one button where in you can delete all the dependencies
    Let me list you the steps to my best knowledge
    (1) Supply Chain Engineer --  TRansaction-- /n/sapapo/SCC07
    You can delete most of what you have asked
    Location, LOcation Product, Product, Resource, Trans Lane, PPM
    (2) Remember before this step, you will have to delete all the orders in all versions for this particular product location.
    Use report: /sapapo/rlcdelete to do this.
    Sometimes not all the orders get deleted and when you try to delete the master data in SCEngineer, it will say that there are dependencies.
    Then you would have to use the " WHERE USED LIST" for each master data and then it will display you the order numbers.
    You would have to manually delete each order number using the RLCDELETE report.
    Hope this helps.
    Regards
    Kumar

  • Cascade delete in hibernate 3

    i am having a problem deleting child object
    here is my code
    my hibernate files are generated with xdoclet
    I want to remove an object AFVALSTOF with all it's childs. the relationship is bi-directional. parent object is AFVALSTOF and as example child is OVERBRENGER. the relationship is obligated (not-null="true")
    By viewing the hibernate logging i can see that the key field of the child is update to null first but this is an obligated field.
    Can anyone help me on how to define my relationship so i can execute the cascade delete?
    This is a part of my parent object (AFVALSTOF) which causes
    problems
    /     private Set overbrenger = new HashSet( );
         * @hibernate.set tablename="overbrenger" lazy="true" inverse="false"
         * cascade="all-delete-orphan"
         * @hibernate.collection-key column="ovbr_afvs_id"
         * @hibernate.collection-one-to-many class="be.milieuinfo.imjv.database.model.afval.Overbrenger"
         * @return Set
         public Set getOverbrenger() {
              return overbrenger;
         * @param overbrenger
         * Overbrenger
         public void setOverbrenger(Set overbrenger) {
              this.overbrenger = overbrenger;
    THIS IS THE CHILD (OVERBRENGER) which has a relationship to the PARENT called AFVALSTOF
    private Afvalstof afvalstof ;
    * @hibernate.many-to-one column="ovbr_afvs_id" class=
         * "be.milieuinfo.imjv.database.model.afval.Afvalstof"
         * not-null="true" inverse="true" cascade="all"
    * @return Afvalstof
    public Afvalstof getAfvalstof() {
         return afvalstof ;
    * @param afvalstof
    public void setAfvalstof(Afvalstof afvalstof) {
         this.afvalstof = afvalstof ;
    thnx
    Stefaan

    <?xml version="1.0"?>
      <!DOCTYPE hibernate-mapping PUBLIC
        "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
        "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
    <hibernate-mapping>
      <class name="com.orly_otero.patterns.VO.ArticleVO" table="tblArticles">
        <id name="idArticle" type="long">
          <column name="id_Article" not-null="true"/>
          <generator class="native"/>
        </id>
        <property name="title" type="string">
          <column name="Title" length="200" not-null="true"/>
        </property>
        <property name="abstracT" type="string">
          <column name="Abstract" length="2000" not-null="true"/>
        </property>
        <property name="keywords" type="string">
          <column name="Keywords" length="200" not-null="true"/>
        </property>
        <property name="type" type="string">
          <column name="type" length="1" not-null="true"/>
        </property>
        <property name="position" type="integer">
          <column name="position" not-null="false"/>
        </property>
        <property  name="isBriefContribution" type="boolean">
          <column name="isBriefContribution" not-null="false"/>
        </property>
        <many-to-one name="issueVO" column="id_Issue" class="com.orly_otero.patterns.VO.IssueVO" not-null="true"/>
        <set name="authorsVO" table="tlbArticlesAuthors" lazy="true" cascade="save-update">
          <key column="id_Article"/>
          <many-to-many class="com.orly_otero.patterns.VO.AuthorVO" column="id_Author"/>
        </set>
        <set name="sectionsVO" inverse="true" lazy="true" cascade="all" order-by="position ASC">
          <key column="id_Article" not-null="true"/>
          <one-to-many class="com.orly_otero.patterns.VO.SectionVO"/>
        </set>
      </class>
    </hibernate-mapping>

  • EF database first cascades delete despite cascade is restricted in db and edmx setting End1/2 OnDelete = "None"

    We are developing with Visual Studio 2013, Entity Framework 5, Oracle DB 11 via ODP.NET managed driver.
    The edmx is generated/updated from database (database first). We generate POCO object using standard T4.
    We have 2 tables with a master-detail foreign key relation, one to many. The foreign key in database does _not_ allow cascade deletes, so when you delete master row via SQL, you get error " ... child record found ... ".
    The problem now is:
    In Entity Framework, when i delete a record from the master table, then EF also deletes all corresponding detail records from the detail table! The restriction of the foreign key in database is ignored.
    In edmx diagram, the properies End1 OnDelete / End2 OnDelete are set to "None", so i expect that on delete of a master row, EF should throw an error if detail rows exists.
    How can i disable the cascading of the delete?
    Here is the FK definition in edmx:
            <Association Name="USR_USER_ROLES_ROLES_FK">
              <End Role="USR_ROLES" Type="Self.USR_ROLES" Multiplicity="1" />
              <End Role="USR_USER_ROLES" Type="Self.USR_USER_ROLES" Multiplicity="*" />
              <ReferentialConstraint>
                <Principal Role="USR_ROLES">
                  <PropertyRef Name="GES" />
                  <PropertyRef Name="PROJ" />
                  <PropertyRef Name="ROLE_NAME" />
                </Principal>
                <Dependent Role="USR_USER_ROLES">
                  <PropertyRef Name="GES" />
                  <PropertyRef Name="PROJ" />
                  <PropertyRef Name="ROLE_NAME" />
                </Dependent>
              </ReferentialConstraint>
            </Association> 
     The delete of master row is done by calling:
    ivDbCtx.USR_Roles.Local.Remove(role); // ivDbCtx is the DbContext, USR_Roles is the collection, role is the POCO object to be deleted.
    Thank you very much for your help!
    Udo

    Hello,
    For issues regarding ODP.NET managed driver, I would suggest you posting to oracle entity framework forum:
    https://community.oracle.com/communications
    There are oracle entity framework expects who will help you better.
    Thanks for your understanding.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • My options and tools have changed.  Unable to extract and delete pages in my PDF document.

    My options and tools have changed.  Unable to extract and delete pages in my PDF document.  How can I get them back?

    Well could it be another Adobe I had before?  I bought software and in that under tools on the far right had all kinds of options.  Also under view and window.  Then I bought another adobe product to try and convert a PDF into a word doc and now under tools that is all it wants to do and my view and window options have changed.  Not to mention the new software i bought isn't converting it just spins.  So I am bummed that neither is working for me.  It is more important for me to be able to extract pages then it is to convert.  Which adobe product allows this?  Maybe I can unistall and reinstall the Adobe software I spent 300 dollars on vs the 19.99 product.

Maybe you are looking for

  • ALV to Excel Format problem

    Hello Freinds, I am trying to download the o/p of ALV report into an excel sheet.But the o/p in excel sheet is distorted to some extent.Some of the headers appear in the next line even if there is no limit of rows in office 2007 which is there on my

  • IPhone blocked due to using different iTunes Account!

    I am currently using iTunes Belgium account and would like to switch this to iTune Germany. (Better, and far more interesting content) However, at the local shop here, they warned me not to this, since this could block my iPHONE when synchronizing wi

  • Cross-Domain Scripting in OC4J

    Hi, I was wondering if anyone could help us find a way to enable cross-domain requests on our OC4J container. We're working on version 10.13.40! We would like to expose our web services to other applications inside our organisation (which operate fro

  • Session Monitoring in AS Java Portal

    We require Logs and history of User logins with their respective IP addresses. Various forums talks about session monitoring in NWA but this tab is not visible in our installation. We are on NW7.0 SP17

  • HPCM Deploying of DB / Apps

    Hi I'm new to HPCM. Can someone let me know what gets deployed when we do the HPCM apps deployment from EPMA. Further what artifacts stored in RDBMS / Essbase of an HPCM apps. While deploying calc / reporting db from HPCM the deploy option is not ava