-->
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: Saving detached objects
PostPosted: Mon Jun 21, 2004 1:06 pm 
Newbie

Joined: Mon Jun 21, 2004 12:51 pm
Posts: 1
Hello all.

As a complete beginner, I have a very simple stateful session bean I'm using to try Hibernate with.

So far it loads some Person objects from a DB (I only have one table, one class so far), and returns them to a client app. The client updates some of the records and passes them back to the SFSB. The SFSB holds on to its Hibernate Session all this time.

At the moment I keep a "dirty flag" in the objects so I know which ones to call saveOrUpdate() on, but this seems a bit clunky.

Is there a better way I'm missing?

Thanks for you thoughts.


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.