JBoss Community

Hibernate tool - HQL query fails with LazyInitializationException

created by Stephanie Smith in JBoss Tools - View the full discussion

I am using the hibernate eclipse plugin. I have the session and connection information defined (and mappings).

When I issue the HQL query, I always get a LazyInitializationException.

 

 

2012-05-01 11:30:21,149 ERROR main org.hibernate.LazyInitializationException - failed to lazily initialize a collection of role: com.mypackage.HibProcess.subprocesses, no session or session was closed

org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: com.mypackage..HibProcess.subprocesses,

no session or session was closed





Any ideas how i can avoid this?

I am using similar configuration/properties that I used previously without error (but was a different database).


Thanks

Reply to this message by going to Community

Start a new discussion in JBoss Tools at Community