Stephanie Smith [
https://community.jboss.org/people/Stephanie.Smith] created the
discussion
"Hibernate tool - HQL query fails with LazyInitializationException"
To view the discussion, visit:
https://community.jboss.org/message/733177#733177
--------------------------------------------------------------
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
[
https://community.jboss.org/message/733177#733177]
Start a new discussion in JBoss Tools at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]