[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-2738) Eager fetch support for StatelessSession

Xavier Poinsard (JIRA) noreply at atlassian.com
Tue Jan 27 05:50:38 EST 2009


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2738?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=32200#action_32200 ] 

Xavier Poinsard commented on HHH-2738:
--------------------------------------

http://opensource.atlassian.com/projects/hibernate/browse/HHH-3220 ?

> Eager fetch support for StatelessSession
> ----------------------------------------
>
>                 Key: HHH-2738
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2738
>             Project: Hibernate Core
>          Issue Type: Task
>          Components: core
>            Reporter: Christian Bauer
>
> class Node {
>     @ManyToOne(fetch = FetchType.EAGER)
>     @JoinColumn(name = "PARENT_NODE_ID", nullable = true)
>     protected Node parent;
> }
>         StatelessSession ss = getStatelessSession();
>         Node node = (Node) ss.get(Node.class, nodeId);
>    [testng] org.hibernate.AssertionFailure: possible non-threadsafe access to the session
>    [testng]     at org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:100)
>    [testng]     at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:854)
>    [testng]     at org.hibernate.loader.Loader.doQuery(Loader.java:729)
>    [testng]     at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)
>    [testng]     at org.hibernate.loader.Loader.loadEntity(Loader.java:1860)
>    [testng]     at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:48)
>    [testng]     at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:42)
>    [testng]     at org.hibernate.persister.entity.AbstractEntityPersister.load(AbstractEntityPersister.java:3042)
>    [testng]     at org.hibernate.impl.StatelessSessionImpl.get(StatelessSessionImpl.java:158)
>    [testng]     at org.hibernate.impl.StatelessSessionImpl.get(StatelessSessionImpl.java:153)
>    [testng]     at org.hibernate.impl.StatelessSessionImpl.get(StatelessSessionImpl.java:145)

-- 
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