Delete Cascade and Composition problem.

As it's well known into a DB You can have more than one Fk and more than one FK could have Delete cascade set.
A typical situation is an intersection table between 2 tables wich solves a N to M relationship.
In BC4J is impossible to manage that situation because Delete Cascate is related to composition and composition tries to lock the owning entity (JBO-25030) however if we try to get the detail row from a ViewLink the other one is invalid and viceversa.
How can I solve that issue ?
I read the Steve's http://radio.weblogs.com/0118231/stories/2003/01/17/whyDoIGetTheInvalidownerexception but we normaly don't know, at the create monent all values (the user should select them) and then the createAndInitRow is not a good solution.
Could someone help.
TIA
Tullio

I've the same Problem and solved it the following way:
Assuming you have the following VOs:
MasterView1
MasterView2
IntersectionView
and two Associations of the composition type (each with the Cascading Delete Option between them):
Ma1InterAssoc
Ma2InterAssoc
If you first select a row in MasterView1 and in MasterView2 you can create a new Row in IntersectionView as both "owning Entities" now have a valid current row. BC4J automatically creates the keys to the two Master Entities for you in the Intersection Entity.
MasterView1Impl vo1 = getMasterView1();
vo1.selectMyRow(...);
vo1.executeQuery();
vo1.next();
MasterView2Impl vo2 = getMasterView2();
vo2.selectMyRow(...);
vo2.executeQuery();
vo2.next();
IntersectionView detVo = getIntersectionView);
Row detRow = detVo.createRow()
detRow.setValueX(...); // it is important to set at least one value!!
detVo.insertRow(detRow);
This method works well since JDeveloper 9.0.3, but unfortunately it is not officially supported by Oracle, so you do it on your own risk :(
Hope it helps
Frank

Similar Messages

  • Deleted Utilties and CD problems - Completly stuck

    hi there,
    I writing this from my girlfriend who uses an Apple MacBook, OS X 10.4.11 Intel Core Duo.
    She once deleted the the "Utilties" folder and seems also to have problems with her CD drive.
    As I am "PC" I have no glue how to fix those kind of issues in the Apple world. I created a Linux (Knoppix) bootable CD which works perfect on my Windows machine. I tried to use the same CD to boot from it on the MacBook.
    I read in several forums to boot from CD you need to press "C", when you hear the start up sound. I realize that the mac tries to read the cd, but drops out the CD after a while. As my girlfriend said, that CD is not working in general anylonger (she thinks it is realted with the deletion of the utilties folder), I thought I will install Linux (Knoppix 6.2) on a USB-stick and boot from USB (holding the ALT key, when starting up)
    When booting up with alt key, it only shows the hard disc to boot from...
    ... so i googled for a solution for this, and I found in a mac forum people where talking about rEFIt (http://refit.sourceforge.net/). So we downloaded that.
    There they say you need to run that "rEFIt.mpkg" file. But the Mac does not recognize mpkg files anylonger as it seams that Apple Installer is missing.
    So I googled for that - I found a guy who said to install Apple Installer, you need to have Apple Installer?
    It looks like that we are stuck now...
    ... any ideas what we could do now??
    Thank's a lot,
    Dominik

    Hi Dominik, and a warm welcome to the forums!
    Do you have an External CD/DVD reader you could use on the Mac?
    Without another Mac around, I think you could try these things...
    MacDrive for your PCs... allows them to Read/Write & Format HFS+...
    http://www.mediafour.com/products/macdrive/
    Copy/image the Install Disc to a USB drive or stick.
    Get Pacifist, the ZIP version...
    http://www.charlessoft.com/
    then extract/install what you need from her Install Disc/USB Pen copy.
    Message was edited by: BDAqua

  • RSZDELETE - Delete queries and Workbooks problem

    Hi
    in BW 3.x we were able to delete the queries and workbooks with transaction RSZDELETE ;however in NW2004s we are not able to delete this,is there any limitation or this feature has been changed to another transaction ??
    Please help.

    Hi Kevin,
    It's still there.  As Prakash has suggested, the note must be applied.  On a similar topic for the tcode rszc please bear in mind this will be enhanched in SPS 10.
    Oss note 981104.
    Cheers,
    Pom

  • I am deleting files through my trash in my macbook pro (2010) and then emptying the trash can, but my hard disk space is not increasing! i recently upgraded to lion and the problem is new, wasn't the same with snow leopard! HELP!!!!!

    i am deleting files through my trash in my macbook pro (2010) and then emptying the trash can, but my hard disk space is not increasing! i recently upgraded to lion and the problem is new, wasn't the same with snow leopard! HELP!!!!!
    When i press command+I (Get Info) i see that there is 140 GB "Available Space" on my hard disk but when i click on my hard disk icon on the desktop, and then press "space" i only see 102 GB free!! What the f*???
    Please HELP!!!!!! Getting second thoughts on Lion!!!!

    Hi b,
    Have you restarted yet?

  • HT6030 Having major Mail problems since I updated Maverick on my 27" iMac. Delays deleting emails and moving emails to other folders. Anyone else having this issue? If so, any known fixes?

    I have an iMac that around 3 years old. Just installed Mavericks when it first was released. I also have a Time Capsule (2TB) that runs my network to my other three Apple devices: iPad2, iPhone 5s and a new Apple TV. Having major Mail issues here. Everything is very delayed and extremely slow. Moving emails to other folders sometimes takes a few minutes and the same goes for deleting emails. Delete them and they don't go into the trash for several minutes. It's getting very frustrating to say the least. Mail also quits very often. Mail also will freeze with the little color ball spinning, therefore I would have to force quit Mail. When the errors occur, it's automatically sent to Apple but there hasn't been an update since 10.9.1 that has fixed it. Apparently, that update was only for gmail issues. Anyone having the same problem? Fixes please?

    I have my entire network and all Apple devices setup as IMAP, not POP. If your settings are setup as a POP account on all devices, emails will not erase when deleted on your other devices. Just something to keep in mind. I'm sure you're aware of this but just wanted to throw it out there. Google IMAP vs POP. However, it seems like your having the same issues as I am. I'm going to swing by an Apple store by me and speak to the genius bar and see if they can come up with something or are aware of this issue. Keep you posted.

  • Problems with Refresh / Deleting Tracks and Album ...

    There are times when refreshing the Music Player library either won't complete (eg: after you've dropped the phone popping out the battery in the middle of a refresh .. or is that just me?) or deleted tracks and album art won't disappear from the Music library after a refresh.
    These problems are often down to corruption of the library and  the only thing to do is to delete the library files and start over.  Even a hard reset of the phone won't fix this as the files are stored on the card / mass memory.
    To delete the library files:
    - Ensure you can see hidden files in Windows Explorer:
    Windows Explorer .. Tools .. Folder Options .. View
    Select "Show hidden files and folders"
    - Connect the phone to your PC using the USB cable in "Data transfer" mode
    - Find and rename (or delete if you're really brave) files with names like:
    E:\private\101FFC31\mpxv1.mpd
    E:\private\101FFC31\pcv5.mpd
    E:\private\101ffca9\harvesterdb.dat
    (assuming the phone's mass memory / card has been connected as E
    Note that the folder names may be different and the files may have prefixes - eg: mpxv1.mpd could be called abcmpxv1.mpd.  Basically, you need to search under the Private folder for any files that look similar.
    If you rename files - eg: by adding a ".o" to the end of the name - instead of deleting them, you can always just change the name back if you find you need those files back.
    - Refresh the Music Player library
    This will take longer than normal as it's a complete refresh, but it should now work.
    Message Edited by patc on 12-Feb-2009 08:38 AM

    Hi,
    What version of Workspace Manager are you using ? I tested this with 9.2.0.4 and everything worked as expected. I was unable to update the row from the WK2 workspace after refreshing it.
    Please note that after removing WK1, all locks that had been held by the WK1 workspace are dropped. So, when you update the row for a second time, you are actually locking the row that had been merged(which is contained in the TOP workspace) and not the row from the LIVE workspace. So any workspace that references the row from the LIVE workspace, and not the one from the TOP workspace, would be able to update the row.
    This is the case that exists before refreshing WK2. However, after refreshing WK2, it will then use the row from the TOP workspace. Since this row is locked it would be unable update the row.
    Ben

  • Please help.. I have just tried to install lion on my iMac and it can't complete because of 'disk error'.. can i delete lion and go back to leopard as there was no problem there?? can't get past grey screen

    Please help.. I have just tried to install lion on my iMac and it can't complete because of 'disk error'.. can i delete lion and go back to leopard as there was no problem there?? can't get past grey screen

    Just restore your bootable backup/clone or Time Machine backup.

  • Please a simple problem but I don't know how to solve it. After installing 16 gb of ram all is good but when I turn on the computer it is a window signaling that all is correct. How is possible to delete once and for all that window? Thank you

    Please a simple problem but I don't know how to solve it. After installing 16 gb of ram all is good but when I turn on the computer it is a window signaling that all is correct. How is possible to delete once and for all that window? Thank you

    Well then maybe you could take a screenshot because the appearance of such a window is news to me.
    Also post your OS X version and what model Mac you have. The more detail, the better. Thanks.
    To take a screenshot hold ⌘ Shift 4 to create a selection crosshair. Click and hold while you drag the crosshair over the area you wish to capture and then release the mouse or trackpad. You will hear a "camera shutter" sound. This will deposit a screenshot on your Desktop.
    If you can't find it on your Desktop look in your Documents or Downloads folder.
    When you post your response, click the "camera" icon above the text field:
    This will display a dialog box which enables you to choose the screenshot file (remember it's on your Desktop) and click the Insert Image button.
    ⌘ Shift 4 and then pressing the space bar captures the frontmost window.
    ⌘ Shift 3 captures the entire screen.
    Drag the screenshot to the Trash after you post your reply.

  • I have read up on all about crashes and i cant even open it in safe mode :( i have tried deleting it and reinstalling it but the problem still persists. What would you suggest i do and is there any way i canget hold of firefox 6 for mac?

    i have read up on all about crashes and i cant even open it in safe mode :( i have tried deleting it and reinstalling it but the problem still persists. What would you suggest i do and is there any way i canget hold of firefox 6 for mac?

    Does the regular Firefox 8 release version work or does the version crash as well?
    *Firefox 8.0.x: http://www.mozilla.com/en-US/firefox/all.html
    Create a new profile as a test to check if your current profile is causing the problems.
    See "Basic Troubleshooting: Make a new profile":
    *https://support.mozilla.com/kb/Basic+Troubleshooting#w_8-make-a-new-profile
    There may be extensions and plugins installed by default in a new profile, so check that in "Tools > Add-ons > Extensions & Plugins" in case there are still problems.
    If that new profile works then you can transfer some files from the old profile to that new profile, but be careful not to copy corrupted files.
    See:
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • TS1702 I am having problems downloading 2 purchased movies. Cars 2 & Toy Story. I had it on My iPad, then after a while the movies would not play. I went to the apple store and they deleted it and told me that all I need to do is download it again. Not wo

    Hi
    I am having problems downloading 2 purchased movies. Cars 2 & Toy Story. I had it on My iPad, then after a while the movies would not play. I went to the apple store and they deleted it and told me that all I need to do is download it again. I tried what they suggested at the apple store, but I am still not successful. It continues to tell me there is a download error. Please help! Need these movies for my 3 year old!

    User to user forum.
    Apple is not here.
    You need to contact iTunes support:
    http://www.apple.com/support/itunes/contact/

  • My notes from my iphone4 have been deleted. Heres the problem, the reason it is deleted is because i accidentally deleted my gmail messages. i guess my notes were there to. the notes are not in icloud and not in gmai. is there any way i can get them back?

    My notes from my iphone4 have been deleted. Heres the problem, the reason it is deleted is because i accidentally deleted my gmail messages. i guess my notes were there to. the notes are not in icloud and not in gmai. is there any way i can get them back?

    Qualdog-12 wrote:
    My friend deleted some of my apps from settings as a prank, and I can't get them back by using the App Store.
    if they are no longer in the app store, you can not get them back.

  • I cannot get scrabble to work on my ipod touch.  I've uploaded, deleted, reloaded and nothing seems to work. It asks for a password but will not let me in.  Anyone else have this problem?

    I cannot get scrabble to work on my ipod touch. It only works on my macbook.  I've uploaded, deleted, reloaded and nothing seems to work. It asks for a password but will not let me in.  Anyone else have this problem?

    Hi BDAqua,
    I can go to /System/Library/Frameworks/, but JavaVM.framework/Versions/A/JavaVM does not exist!
    Hi Linc,
    I have already downloaded that updater, and it says 'A newer version of this package is already installed'

  • I'm running iTunes 10.5 on my Macbook Pro and software 4.1 on my 2g iPod touch and having problems getting photo's to sync. Same error iPod can't be synced req'd file can't be found. Tried deleting the photo cache, restoring the iPod etc but to no avail.

    I'm running iTunes 10.5 on my Macbook Pro and software 4.1 on my 2g iPod touch and having problems getting photo's to sync. Same error, "iPod can't be synced req'd file can't be found". Tried deleting the photo cache, restoring the iPod etc but to no avail.

    Try here:
    iTunes: Unable to sync photos
    Usually deleting the iPod Photo Cache Folder works. Note that if you sync via the folder method, make sure you dlete all the ifolders since :
    The iPod Photo Cache stores the photos that are optimized for display on your iPod, iPad, or iPhone. The location of this folder depends on the syncing options you select. In iTunes, if you change the selection in the “Sync Photos From” pop-up menu, a new iPod Photo Cache folder will be created (and the previous folder will remain).

  • I am having problems opening iTunes! ever since I updated to 10.5.3ver, I cannot open the application.  I have deleted iTunes and all associated apps (bonjour, Cloud, Apple support apps, etc) and still something is wrong. I cant find it anywhere; where di

    i am having problems opening iTunes! ever since I updated to 10.5.3ver, I cannot open the application.  I have deleted iTunes and all associated apps (bonjour, Cloud, Apple support apps, etc) and still something is wrong. I cant find it anywhere; where did it go? I received the download confirmation each time for each application!  HELP!!  Using Win7 (64-bit)--IE9

    Your post is too difficult to read. Please repost using paragraphs.
    In the interim... For All things TM... See Pondini's Excellent information here...
    http://pondini.org/OSX/Home.html
    In particular... FAQs and Troubleshooting.

  • Problem on DELETE CASCADE

    my following tables not allow me to delete the parent table student and the corperate recode in child table also get delete , why
    create table Student(       student_id  int(10) not null  ,       sure_name VARCHAR(25)  not null,       english_name Varchar(25) default null,       chinese_name varchar(35) CHARACTER SET utf8 COLLATE utf8_general_ci not NULL,       student_hkid  varchar(12) not null,       address varchar(100) default null,       mobile_No  varchar(15) default null,       home_Telephone  varchar(15) default null,       email    varchar(20) not null,       faculty  varchar(70) default null,       department varchar(100) default null,       local_student varchar(3) default 'No',       fresh_student varchar(3) default 'No',       fulltime_student varchar(3) default 'No',       first_Ustudent varchar(3) default 'No',        userIp  VARCHAR(45)  not NULL,       accessTime  VARCHAR(45)  not NULL,       primary key(student_id))TYPE=MyISAM CHARACTER set utf8; create table Student_financial_info(   student_id  int(10) not null,   grant_loan varchar(3) default 'No',   uploadfile  text default null,   notification_time varchar(10) default null,   father_name  varchar(25) default null,   father_HKID  varchar(12) default null,   father_Salary decimal(6,2) ,   father_live_together varchar(3),   mother_name  varchar(25) default null,   mother_HKID  varchar(12) default null,   mother_Salary decimal(6,2) ,   mother_live_together varchar(3),   1th_sibling_name  varchar(25) default null,   1th_sibling_HKID  varchar(12) default null,   1th_sibling_Salary decimal(6,2) ,   1th_sibling_together varchar(3),   2th_sibling_name  varchar(25) default null,   2th_sibling_HKID  varchar(12) default null,   2th_sibling_Salary decimal(6,2) ,   2th_sibling_together varchar(3),   3th_sibling_name  varchar(25) default null,   3th_sibling_HKID  varchar(12) default null,   3th_sibling_Salary decimal(6,2) ,   3th_sibling_together varchar(3),   4th_sibling_name  varchar(25) default null,   4th_sibling_HKID  varchar(12) default null,   4th_sibling_Salary decimal(6,2) ,   4th_sibling_together varchar(3),   addition_income Varchar(200) default null,   primary key(student_id ),   FOREIGN KEY(student_id) REFERENCES student(student_id) ON DELETE CASCADE ON UPDATE CASCADE)TYPE=MyISAM CHARACTER set utf8;

    HJava wrote:
    hi thank you!
    I change my table Engine under Mysql Query Browser, but Foreign Key settinis not action at all ( thank you you mention the foreign key is ignore), quite stronge for me, I have to drop the table and change the table engine to InnoDB in my create table code and run it under command line client,
    now, It work.
    are there any different to  use command line Client and Mysql Query Brower?
    thank you!Not really, other than appearance. But, the "GUI" might let you simply change the type of table on an already created database (I don't know, haven't tried it), unfortunately, that won't activate any foreign keys when changing a MyISAM to InnoDB (although it will destroy keys on an InnoDB when changing to MyISAM), as, like the above quote says, the keys are not only not used, they are not even stored. I.E. MySQL no longer even knows, nor cares, that you even attempted to create a foreign key for that table. So, you must drop and recreate the table, you can't simply "change" it. Although you could change it (if the GUI even does this) and then add the foreign key constraints.

Maybe you are looking for

  • Creating/Extracting password protected zip files in AIR

    Hello, Does any one have any idea about creating/extracting password protected zip files in AIR. I am aware of FZip but it does not has the feature to password protect. Any help would be appreciated. Thank you VinSat

  • No Display from the Start

    This is the 3rd MiniMac 10.7.x Server that has had this issue in the last 4 months. From the start, I cannot get any display signal on HMDI or Thunderbolt ports to HDMI or VGA adaptors (Apple Brand) to any display, PC LCD 19" or 20" RGB or Apple 20"

  • IN clause of oracle

    Hi Everyone, I have a column A defined as VARCHAR2 in table1 which will contain numeric data separated by Comma(,). I have to pull data from another table by using the values present in column A of Table A. Table 1: A ID 1,2,3 123 Table B A_A Name 1

  • Use of CC on PC and laptop

    I have subscription for CC. Can i download it on my PC and laptop as I travel a lot . With past purchases this has been allowed but with CC it refuses the key when I try to download onto my laptop.

  • Portal shutting down upon restart

    Hey guys! A really weird thing is happening to our production portal, it shuts down after 20 minutes of going up and this is happening everytime it is restarted. It has been working perfectly for nearly two months after installation till now. We cann