-->
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: Implementing hibernate on legacy systems
PostPosted: Thu Sep 04, 2008 8:22 am 
Newbie

Joined: Fri Jul 18, 2008 10:14 am
Posts: 5
[b]Hibernate version:[3.1.3]

We are planning to start using Hibernate in our browser based Enterprise Application. We are trying to implement it on a small part of our core structures to see how feasible it would be for us to use on the legacy code and database. Few queries regarding the same..

Intitially we wanted to keep one transaction open for all the read operations and keep on opening and closing other transactions for write operations (Since it needs a commit). But, it seems we cant keep two transactions open on the same session. So, we tried opening a new session for write operations, but again we cannot share the dettached object read from session 1 (which is still open) and save it through session 2.

I could read a obj from session 1, detach it by committing the transaction on session 1 and then reuse the object on session 2 by updating it. But, this would mean lot of sessions/transactions opening and closing.

Any suggestions on the basic design or path way to implement hibernate on the existing code?

Would hibernate 3.3 be of any help?

_________________
Somebody tell me..!


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.