|
From: <leg...@at...> - 2003-10-13 21:48:20
|
The following issue has been updated:
Updater: Jason Carreira (mailto:jas...@no...)
Date: Mon, 13 Oct 2003 4:47 PM
Comment:
This is an example of the issue. I haven't included the libraries, but all it needs are the standard hibernate jars and hsqldb.jar.
As you can see from the tests, this isn't a problem with session.find(), only session.load().
Changes:
Attachment changed to src.zip
---------------------------------------------------------------------
For a full history of the issue, see:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-395&page=history
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-395
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HB-395
Summary: Lazy Initialization used even when collection mapping says lazy="false"
Type: Bug
Status: Unassigned
Priority: Blocker
Project: Hibernate2
Components:
core
Versions:
2.1 beta 3
2.1 beta 4
Assignee:
Reporter: Jason Carreira
Created: Mon, 13 Oct 2003 4:46 PM
Updated: Mon, 13 Oct 2003 4:47 PM
Environment: We use Oracle with WebLogic and WebSphere, but I've included a test case which fails as unit tests running against HSQL
Description:
If a child class has a Proxy (all the ones I've tested have themselves as the proxy class) and the parent class has a <set> mapping to the child class with lazy="false", then, if session.load(Parent.class, parentId) is called, then child collection will be lazily initialized. This doesn't happen with session.find(), for some reason.
---------------------------------------------------------------------
JIRA INFORMATION:
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
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
|