-->
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: Updating
PostPosted: Tue May 24, 2005 6:54 pm 
Newbie

Joined: Thu May 12, 2005 2:24 pm
Posts: 7
Hi,

To update in hibernate as far as I know you first retrieve a reference to the object then change the fields and they get updated in database.

I have a form from struts. I use BeanUtils and end up w/ an object that the user saved.

If I take the reference from the database and assign the one w/ the new values in it it just creates a new record. Is there any way to update all fields in the database without manually having to assign every field?


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.