-->
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: collection not updated
PostPosted: Thu Mar 08, 2007 4:57 pm 
Newbie

Joined: Wed Mar 02, 2005 10:39 am
Posts: 6
Location: hartford CT
Hi Guys :

I have a hibernate issue which should be fairly common.
I have a class ... Airplane, with a collection of seats
class Airplane
{
Set<Seat> seats;
//getters and setters.
}

Now, when I modify one of the seats(call it s) , and I call session.refresh(s), the airplanes's list of seats does not reflect this modification. After restarting my app, the change is reflected ...

How can i make sure that an object's children will be modified in such a way as to ensure that any collection's to which they belong to stay in sync with the database ? it seems like refresh( is not sufficient.

-j


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.