[
http://opensource.atlassian.com/projects/hibernate/browse/ANN-731?page=co...
]
Lars Heyden commented on ANN-731:
---------------------------------
Ok, I have no insight when "synthetic properties for non-PK-references" was
introduced. What I can say it is in use in 3.3.1.GA so find out yourself.
- map an entity B with a non-PK to-one association to an entity A.
- create a SqlResultSetMapping for A.
- query for an instance of A with a native query using the SqlResultSetMapping.
You will get an exception from the JDBC driver telling that a column was requested that
wasn't specified in the query. In a debugger this goes back to code that tries to get
a value for an internally generated property of A named "B_A" or something like
that.
Fix for ANN-548 breaks @SqlResultSetMapping
-------------------------------------------
Key: ANN-731
URL:
http://opensource.atlassian.com/projects/hibernate/browse/ANN-731
Project: Hibernate Annotations
Issue Type: Bug
Affects Versions: 3.3.1.GA
Environment: Hibernate 3.2.6.ga, HEM3.3.2.ga, HAN3.3.1.ga,
JSE 1.6, DB2 8.2
Reporter: Lars Heyden
The generation of synthetic properties for non-PK-references introduces with ANN-548
makes it impossible to use @SqlResultSetMapping. When doing a native query Hibernate tries
to read values for these properties out of columns (column aliases) that do not exist.
--
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira