[hibernate-issues] [Hibernate-JIRA] Closed: (HHH-2738) Eager fetch support for StatelessSession
Christian Bauer (JIRA)
noreply at atlassian.com
Thu Feb 2 08:36:14 EST 2012
[ https://hibernate.onjira.com/browse/HHH-2738?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christian Bauer closed HHH-2738.
--------------------------------
Resolution: Out of Date
This is no longer a problem, possibly fixed by HHH-3220.
> Eager fetch support for StatelessSession
> ----------------------------------------
>
> Key: HHH-2738
> URL: https://hibernate.onjira.com/browse/HHH-2738
> Project: Hibernate ORM
> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list