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....