-->
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: Open session with Swing and MVC pattern
PostPosted: Thu Nov 11, 2010 4:59 pm 
Newbie

Joined: Thu Nov 11, 2010 4:35 pm
Posts: 1
Hi, I'm Fabio and I'm a newbie with Java-Hibernate-Swing....

I have an application develoed with Swing for a GUI, with hibernate for persistence data and Model-View-Controller pattern. Now if one view receives some input, the view call the controller and the controller call the model...however I use MVC!! But where I must call the session to save data? Not in a model, because the domain must not have some method to access persistence data, and not in a view for the LazyInitializationException problem (http://community.jboss.org/wiki/OpenSessioninView).

Then, where i must open a session?!!

Thanks a lot....


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.