-->
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.  [ 1 post ] 
Author Message
 Post subject: one to may cascade(for delete and insert not for update)
PostPosted: Fri Aug 15, 2008 12:43 am 
Newbie

Joined: Fri Aug 15, 2008 12:36 am
Posts: 1
Hi

i am using cascade="all" for now, but i ran into a peculiar situation when i want to update the child tables are getting updated, in case if i add more records than the current one in the child tables, the child tables are not getting updated

so i took a stupid approach like, i do a findBy then delte and create the record.(it generates a new sequence number)

so is there any way to limit my cascade to delete as well as insert not for upate

thanks
rakesh

_________________
Rakesh Malireddy


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

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.