-->
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.  [ 2 posts ] 
Author Message
 Post subject: Swing and Hibernate
PostPosted: Tue Dec 28, 2004 11:34 am 
Newbie

Joined: Thu Nov 04, 2004 10:24 am
Posts: 17
One of the developers on my team came up with an idea for our Swing application (in which there is a single DB updated only by the one app, which means fewer data consistency issues).

Open a Session at the beginning of each write-Action and leave it open until the beginning of the next write-Action. Read-only data accesses such as, scrolling to a different part of a JList, never have to reattach detached objects.

This is a variant of the Session-per-User-Transaction design pattern (http://www.hibernate.org/168.html). It does mean that Sessions can be open for a long time between Transactions.

This relies on never having any Hibernate exceptions in the read-only data accesses, otherwise the Session is messed up until the next write-Action begins.


Top
 Profile  
 
 Post subject: Please continue on main thread
PostPosted: Tue Dec 28, 2004 11:48 am 
Newbie

Joined: Thu Nov 04, 2004 10:24 am
Posts: 17
Apologies: This was misposted here. Please refer to http://forum.hibernate.org/viewtopic.php?p=2225981#2225981


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

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.