Let the database doing cascade deletion for privateOwned relationship

Hi,
I have two tables: parent, child. I mapped the parent to child as a one-many private owned relationship. The child table have a foreign key reference back to parent table. The constraint is like this
alter table child add constraint FK_CONSTRAINT foreign key (parentid) reference parent (parentid) on delete cascade;
I would the cascade deletion is done by database (as it is "on delete cascade" in the constraint) rather by the toplink. (This is exactly what you will do when use JDBC. another reason is that if I let the TopLink do the cascade deletion, I got a deadlock! If I remove the cascade deletion from topLink, I do not have the deadlock).
Is there anyway I can turn off the cascade deletion from topLink, but at the same side keep the private owned relationship(because it is indeed privately owned)?
Any help is really appreciated.
jason

Setting a no-op sql solves the cascade deletion problem. However, if I really want to remove a child from the parently, I ends up using the same no-op sql. I can not delete child independently.

Similar Messages

  • Delete an email from the pc,  does not delete the email from the iPad.

    Hi
    When I Delete an email from the pc,  does not delete the email from the iPad.  I'm not able to find a setting to fix this.  Does it mean I have to manually delete the emails from the iPad? 
    Thank you in advance for your help.

    Thanks, I was told that my Yahoo account has to be setup on the Mac as a POP account.  Can you please let me know what the difference is (in simple terms) between IMAP and POP? 

  • I got iPhoto '11, version 9.2.3 and want to edit photos using Photoshop elements 10. I have put P'shop 10 as the preferred editor... but when I click on the photo in iPhoto the Adobe p'shop 10 program opens BUT the picture does not open for editing. Wha.

    I got iPhoto '11, version 9.2.3 and want to edit photos using Photoshop elements 10. I have put P'shop 10 as the preferred editor... but when I click on the photo in iPhoto the Adobe p'shop 10 program opens BUT the picture does not open for editing. What the heck... I did fine with the old iPhoto and "Shop elements 6... .

    Adobe now hides the editor - what looks like it is not - you want the editor hidden in the support folder - see http://forums.adobe.com/message/3955558#3955558 for details
    LN

  • I started the OS system from a backup hard drive. Now My Adobe products doesnt work. "the licensing does not work for this product" Error code 150:30. Help me please!!

    I started the OS system from a backup hard drive. Now My Adobe products doesnt work. "the licensing does not work for this product" Error code 150:30. Help me please!!

    Reinstall the software properly. migration/ backups do not work due to the specific requirements of the activation system.
    Mylenium

  • Db-cascade-delete for other databases than Oracle?

    I have two entity beans with a one to many relationship. The database designers have implemented a cascading delete between the two tables for the entity beans. How should the deployment descriptors be written for this to work properly? From what I understand I will need to use the <cascade-delete /> tag in ejb-jar.xml and <db-cascade-delete /> in weblogic-cmp-jar.xml. However this document http://e-docs.bea.com/wls/docs81/ejb/entity.html states that <db-cascade-delete /> only works for Oracle, and I'm using DB2. Does this mean that I have to remove the cascading delete in the database and only enable it in ejb-jar.xml, or will <db-cascade-delete /> work for other databases than Oracle?
    /Björn

    To get the certified answer I'd ask a tech support rep. Unofficially, if DB2 supports cascade delete then I would expect that the EJB container will work with that. There are issues surrounding certification of features against specific databases and I'm not up on all of these so I'd check with support.

  • Any solution for the Exchange "does not delete" / "does not expunge" bug?

    Other than using Synchronica, has any solution been found or released for the iPhone/Exchange bug where messages deleted on the iPhone are not deleted from the server (but rather just left there & shown as "read")?

    Yes. The issue here is that iPhone does not issue the "expunge" command after deleting the message. If you have a PC at work and are using Outlook, you may want to run a utility that will periodically expunge the deleted messages so you don't have to do double duty deleting. A good one is here -- note, you must scroll down to the comments for the link to the updated binary that supports SSL if it is enabled on your Exchange server:
    http://blogs.freshlogicstudios.com/Posts/View.aspx?Id=44a01293-3b32-4ee0-b23c-fa c99348e1cd

  • 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.

  • How to reduce the database size after deleting huge amount of rows?

    Hi,
    I have a large database. I removed almost half of the data/rows. Now i need to reduce the size of the database file as I need more disk space for the database file.
    What should I do in details please.
    Thanks.

    Hi,
    I have a large database. I removed almost half of the data/rows. Now i need to reduce the size of the database file as I need more disk space for the database file.
    What should I do in details please.
    Thanks.
    Deleting large data would have ultimately put ghost cleanup into action. You would not be able to free space using shrink operation untill it completes. So wait for time and then start shrinking. You should note that shrinking would cause fragmentation and
    you would have to rebuild indexes after shrinking is completed
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
    My Technet Wiki Article
    MVP

  • So what is the Database setting in Preference for?

    In the years of using Safari, in the Preferences it has settings for Database under Security tab. I've left it at the default 5mb. Whenever I clicked Show Database nothing was ever in there. But yesterday there were two items. I Removed them not paying any attention really. Then today another appeared named ourstage.com.
    I've never been to that site or heard of it. So I went to it. Nope nothing I've ever been to.
    So what is this database setting? Should I leave it active? What benefit does it do for Safari or me as a surfer?
    Thanks
    Using the latest Safari released, Version 5.0.3 (6533.19.4) and 10.5.6

    HI,
    http://www.apple.com/safari/features.html
    See: HTML5 Offline Support
    I have "twitter.com" on mine. That way I never have to re sign in. A "super cookie" ... Not all sites support that feature.
    Carolyn

  • Virtual private database and cascade delete

    We can't secure rows deleted by cascade delete by vpd.
    User "A" have right to delete row "1" but don't have right to delete row "2".
    If user "A" delete row "1", database will delete also row "2" by cascade delete.
    Why it is possible to delete row "2"?

    Either of the two options (a policy that queries the base table or propagating the security columns to the child tables) should work.
    My preference from a data model standpoint would be to have a policy that queries the base table so that the security information can be maintained in exactly one place. But if your application is frequently querying the child tables without reference to the parent table, joining to the parent table, particularly if data volumes are such that an IN would be less than ideal, there may be performance issues to this approach.
    Copying the columns creates a potential data integrity problem-- if you change the security on a base table row, you may forget to change the security on all the child records. But that issue may not be significant if the security is essentially static once the rows are created. And it's definitely easier to tune.
    You may also want to create views that join the parent and child tables and grant users access to these views rather than to the child tables directly, which would allow you to have a single policy on the base table and get most of the benefits of the first option with less performance problems if data volumes make an IN less than ideal.
    Justin

  • Deleting the Environment does not delete Security roles

    Hi Experts,
    We are using BPC NW 10 (CPMBPC 801 SP5).
    I deleted some test Environments using UJS_ACTIVATE_CONTENT program. It cleaned the environment correctly and job was successful. I had SAP_ALL profile before executing the program.
    I saw that the roles ZBPC_XXXXXXX are not deleted. Entries from tables like UJE_TEAM_AGR , UJE_USERS_AGR are gone for these environments.
    But when I look at SU01 for any users these ZBPC_XXXX roles are still assigned. When I look in the role using PFCG tcode, I can see that the role is for the deleted Appset/ Environment.
    Could you please let us know how to clean the roles for deleted Environments or if there is a program/ tcode to delete these roles.
    Thanks in advance.
    Reagrds,
    Sandeep Sharma

    HI Mr.Sharma   ,
    There are many technical jargons i didnt understand from you post. Correct me if am wrong. Your scenario is you deleted roles but if u go the users still they are showing they belongs to these roles.... right..?.... If this is the scenario you can go for a mass user comparison with the help of basis guys.
    This will sort out the issue.

  • SOS! The database does not start and the license key can not be installed.

    Hi,
    I have installed the SAP Netweaver 200s testdrive on linux x86-64. I have got the hardware key and requested a license key. I have received an E-mail with the license key (N4S.txt) attached.
    Unfortunately, I am not able to active the installation with this license.
    I always get the error: "open of N4S.txt failed: No such file or directory"
    I have renamed the license as N4S.rpm but it still not working.
    Furthermore, I could not start the database in the previous step. I have got the error: Database failed to start.
    Does anyone already have the same errors? Your help will be so greatful.
    Thank you.
    Jodie

    Hello,
    yesterday, I have tried your propositions but nothing doesn´t change.
    @Joe
    "You might want to check installation log files.."
    I do it but I did not see any error.
    @Marcel 
    "Which Linux distro did you use?..."
    I have the linux Opensuse 11.1
    @Hannes
    "you mentioned, that you are not able to start the database. Unfortunately, your error message
    does not give us any details of what happened"
    I follow the Installation´s help file of SAP, I didn´t have any error before this step of the Installation (Start the Database: entering the command startdb).
    1) did the installation finish successfully?
    Until the request of the License key, the installation goes without errors.
    2) logon as n4sadm (su - n4sadm) and execute: startsap n4shost
    What is the output?
    "No start profiles found"
    3) check /home/n4sadm/startdb.log (or any other start*log files there)
    This is the content of the startdb.log file:
    lun. mars 2 23:05:13 CET 2009
    LOGFILE FOR STARTING DATABASE
    Trying to start database ...
    lun. mars 2 23:05:13 CET 2009
    Checking required environment variables
    SAPSYSTEMNAME is >N4S<
    Start database with xuserkey >c<
    lun. mars 2 23:05:13 CET 2009
    Connect to the database to check the database state
    dbmcli: connect check finished with return code: 0
    Database not available
    lun. mars 2 23:05:14 CET 2009
    Starting XServer
        12798  NISERVER NI support started.
    WNG 12453  NISSLSRV NISSL Init: SSL: Could not locate licence file
        12902  XSERVER  started, 'X64/LINUX 7.6.00   Build 018-123-119-055'
    lun. mars 2 23:05:14 CET 2009
    Starting database
    Starting Database Instance...
    Error! XUser not found!
    Opening Database...
    Error! XUser not found!
    lun. mars 2 23:05:15 CET 2009
    Connect to the database to verify the database is now open
    dbmcli check finished with return code: 0
    Database start failed
    Thank you for another propositions
    Jodie

  • I had an accident with my ipod. i did not know that; nowadays, the warranty does not cover my ipod if the screen is cracked. but now the battery is not working. the warranty does help me for something??

    i want help, not the same comments that i will not be helped. i admit my fault as the owner that i had the accident, but i believed that i was secured with my warranty. otherwise i would ha decided to do not have it if i was going to be the one paying to be fixed... how can i still trust Aplee Corp if the are not helping me with a devise that i paid the price that they decided giving me a warranty to be sure that i am secure while i use my devise. now i would like to know if i can have a refund of the warranty because i am looking for a different way to fix it because i have to pay and pay. but i paid for this situation and i had such assintance leaving me aside telling me that i am hopeless and also that i have to pay more and more.
    ir does not work like that. i feel bad being treated like that.

    angelferuz wrote:
    nowdays, the warranty does not cover my iPod if the screen is cracked.
    It never - ever has. The manufacturer's warranty covers you against faults due to manufacturing. (So if the screen did crack due to a manufacturing defect, Apple warranty would cover it, BUT - Apple would be aware and would be able to identify the cause of a cracked screen due to manufacturing defects, so ...)
    Since you did not want comments telling you what you don't want to hear, you should condsider yourself lucky that you have any replies to this post. Sometimes, the truth hurts.

  • I am trying to download...but the link does not allow for downloading ? !

    I am trying to download the FireFox software but the page does not give me a link to execute ....I see the area for the down load but when I put my curser on it it does nothing

    Try this page - http://www.mozilla.com/en-US/firefox/all.html

  • Uninstall the application does not delete all new files and folders.

    If the user decides to uninstall my Air app, it does not delete the created folders with files in AppData. Another problem is that if the application creates new files in the folder Program Files/AirAppFolder, then uninstall of the app are not deleted these files.
    How to solve these problems, help please?

    Hi,
    AIR shouldn't be creating additional files in your program files folder, is this something you're doing programmatically?  If so, you might want to consider using File.applicationStorageDirectory instead given permission problems you'll have on newer operating systems.
    As to uninstalling all files (even the data created in the user's storage folder) this is something you might consider using a native installer to take care of.  Since the AIR installer is unaware of this data, it won't know to delete it on uninstall.  Instead, you'll want to create a custom function in a native installer that deletes these folders/files and then sub launches the AIR install/uninstall.
    Thanks,
    Chris

Maybe you are looking for

  • My itunes wont sync music to ipod

    I dont know what to do I plug in my ipod open itunes then it says its syncing music to ipod then all of a sudden it stops and says it cant sync files....anyone know what to do???Help its frustrating me! hp   Windows XP  

  • Config issue:  no data flow to profit center

    Hello, I'm on ECC6.0, and I'm trying to do a GL posting using FB50 to profit center and do an profit center assessment , but when I go to report KE5Z ( profit center actual line item report ), I don't see any value flow to the profit center. Due to t

  • Restricting a sftp user to a particular directory

    Hi, While uploading files using WINSCP to a sftp server the user is able to browe all the folder in the sun box. How to restrict the user to view only the folder assigned for him to upload the files ? Arut

  • Simple question abt applet

    I want to write a file onto clients computer using an applet. Also want to send back a file to server. Question is simple : Is it possible to write on to client's machine using applets, or not? If yes, how? I have searched the web but havent been abl

  • Problem in Dierct print of Adobe form

    Hi all, My requirement is to print the Adobe form directly.when user execute the particular Z transaction. Then the form should be print. I have given all print parameters to the FM FP_JOB_OPEN.I am using ADS. But i am getting the print when I excute