[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-2878) LazyInitializationException - no session or session was closed

Matt Young (JIRA) noreply at atlassian.com
Wed Mar 19 16:40:33 EDT 2008


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2878?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_29842 ] 

Matt Young commented on HHH-2878:
---------------------------------

I am having the same problem but I am using annotations.  What would the workaround be in that case?

> LazyInitializationException - no session or session was closed
> --------------------------------------------------------------
>
>                 Key: HHH-2878
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2878
>             Project: Hibernate3
>          Issue Type: Bug
>    Affects Versions: 3.2.5
>         Environment: Hibernate v 3.1.4-3.2.5, Oracle/HSQLDB/Whatever
>            Reporter: Paul Andrews
>         Attachments: testcase.zip
>
>
> A LazyInitializationException is thrown for a lazy set when the items in the set can be duplicates. This is manifested in a many-to-many implemented using join table; the session is still open but the session for the collection is set to null.
> The attached ZIP contains a test-case that demonstrates this.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list