aspose file tools*
The moose likes Object Relational Mapping and the fly likes Illegal attempt to associate a collection with two open s essions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Illegal attempt to associate a collection with two open s essions " Watch "Illegal attempt to associate a collection with two open s essions " New topic
Author

Illegal attempt to associate a collection with two open s essions

Maneesh Chauahn
Ranch Hand

Joined: Mar 06, 2006
Posts: 48
Hi All,

I am facing the Illegal attempt to associate a collection with two open
sessions. How can i make sure that first session get closed before hibernating making the second session.

Thanks in advance for your prompt answer

Maneesh Chauhan
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17259
    
    6

Well you can call session.close() on the first session.

Actually, can we see the code for the two sessions?

Thanks

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
Don't get me started about those stupid light bulbs.
 
subject: Illegal attempt to associate a collection with two open s essions