-->
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: What is thd scope of the update method?
PostPosted: Fri Apr 29, 2011 5:14 am 
Newbie

Joined: Sat Feb 19, 2011 9:07 am
Posts: 8
Hi,
I am a little confused as to what and how the update method does when I call it? I have been pondering it and reading about it on the net and still unsure and wondered if someone could help. I have listed a number of scenarios below along with what I expect to happen:

1. When I read data from my table and and MAKE changes to that pojo data, then call the update method will the updated data persist in the table?
Answer: Yes

2. When I read data from my table and ADD new pojo data to the existing collection, then call the update method will the new data persist along with the old data in the table?
Answer: I expect so?

3. Both points 1. and 2.
Answer: I expect so?

Hope this is understandable and someone can help with this.

Cheers,
Paul


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.