Hi,
I am having problems updating an object. I am using HibernateInSessionInterceptor to open a session as needed for the web layer, but not sure if that may be the problem. The object I am updating extends the User class and is mapped with InheritanceType.JOINED. I have collections in both the User class and Member class, some are eager and some are lazy. Going through the logs with the output set to DEBUG, it appears that all the collections are loaded fine, but I cannot tell what is opening another session.
Any ideas what I should be looking for exactly?
Please let me know if you need more information or configuration files.
Code:
Nested in org.springframework.orm.hibernate3.HibernateSystemException: Illegal attempt to associate a collection with two open sessions; nested exception is org.hibernate.HibernateException: Illegal attempt to associate a collection with two open sessions:
org.hibernate.HibernateException: Illegal attempt to associate a collection with two open sessions
This doesn't tell me which collection it is having problems with, so I am unsure what else I can do to fix this problem.
Walter