-->
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: Load/Update typical usage
PostPosted: Sat Nov 05, 2005 5:24 pm 
Newbie

Joined: Sat Nov 05, 2005 5:16 pm
Posts: 2
Hi all. I'm new to hibernate and I need some advice from you.

I used this pattern for some OJB web applications when editing objects with forms.


1) load the object from db (using the pk)

2) change object fields using setters

3)validate the user entry (using exintake)

4) if valid, store object

5) if invalid discard changes

Now I'm trying to used hibernate for a new webapp, but the validations fails at step 3, the object with "dirty" fields goes to the UI generation. Only on the next request the "old" object is displayed.

Could you tell me which is the preferred way of doing this with hibernate?
Thanks


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.