-->
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 updating and deleting on collection
PostPosted: Wed May 19, 2004 11:59 am 
Beginner
Beginner

Joined: Fri May 14, 2004 9:50 am
Posts: 28
Hi,


I have an object Services that have 3 attributes : the name, the number and a collection of Person.
A Person has 3 properties : name, surname and age adn is identified by her name and surname.
The update of Person is made by cascade update when I update the Services.

Now, I have hibernate that extracts from a database all the Persons linked
to an Service and returns them to me in a Set.

Then I put the set through another tier of the application.

I make changes over the Person with the name


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 19, 2004 7:32 pm 
Senior
Senior

Joined: Fri Nov 21, 2003 5:55 am
Posts: 155
Use the cascade all for your object Set.
And for update you can use the session.update(POJO)


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.