[hibernate-issues] [Hibernate-JIRA] Updated: (HHH-3949) Intrumentated to one relations can not be join fetched
Gérald Quintana (JIRA)
noreply at atlassian.com
Tue Jun 9 16:43:13 EDT 2009
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-3949?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gérald Quintana updated HHH-3949:
---------------------------------
Attachment: hhh-3949.tar.bz2
Attached test case.
How to run it:
1) Unzip
2) Run "mvn clean install"
==> 4 test cases fail showing the problem
3) Disable instrumentation by commenting the antrun plugin section in the POM
4) Re-run "mvn clean install"
==> 4 test cases succeed showing the problem doesn't occur when there is no instrumentation
> Intrumentated to one relations can not be join fetched
> ------------------------------------------------------
>
> Key: HHH-3949
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3949
> Project: Hibernate Core
> Issue Type: Bug
> Components: core, query-criteria, query-hql
> Affects Versions: 3.3.1
> Reporter: Gérald Quintana
> Attachments: hhh-3949.tar.bz2
>
>
> 1) Relation Person -> Vehicle is annotated
> @OneToOne(optional=true, mappedBy="driver", fetch=FetchType.LAZY)
> @LazyToOne(LazyToOneOption.NO_PROXY)
> private Vehicle vehicle;
> 2) Both entities are instrumented with Javassist
> 3) Query (HQL or Criteria) Person and Vehicle: from Person p left join fetch p.vehicle
> => SQL query is correct but Vehicles are not loaded
--
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