-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Cascade-Question
PostPosted: Mon May 14, 2012 4:14 am 
Newbie

Joined: Mon Feb 13, 2012 4:59 am
Posts: 8
Hello Community,

Is it possible to decide which attributes should be deleted when deleting a Row?
I have a table with some references to other tables, for example:

ID - Coordinate - User - Name ... ...

When a row is deleted, the coordinate in the coordinate-table should be deleted, too, but not the User.
The cascade-attribute should just delete coordinate, not user.
But with "cascade=delete" the user is deleted, too.

Do you understand me?

Thank you for helping me :)


Top
 Profile  
 
 Post subject: Re: Cascade-Question
PostPosted: Tue May 15, 2012 5:22 am 
Newbie

Joined: Mon Feb 13, 2012 4:59 am
Posts: 8
So I have to implement this on my own and there is no attribute to do this? Ok..


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.