[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2823?page=c...
]
Matthias Pretzer updated HHH-2823:
----------------------------------
Attachment: hibernate_2823.zip
Maven based test case.
The simple case is handled correctly. If the column named id is contained in an inner
class, however, the bug is triggered.
non-primary-key attribute 'id' mapped to primary-key
-----------------------------------------------------
Key: HHH-2823
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2823
Project: Hibernate Core
Issue Type: Bug
Components: core, metamodel, query-hql, query-sql
Affects Versions: 3.2.5
Reporter: Wolfgang Hollweck
Attachments: hibernate_2823.zip
When querying an entity that got a non-primary-key attribute 'id', 'id'
is not mapped to 'id' but to the entity's primary-key attribute, though
Hibernate doc claims "The special property (lowercase) id may be used to reference
the identifier property of an entity (!!!) provided that entity does not define a
non-identifier property named id."
see the hibernate forum for details:
http://forum.hibernate.org/viewtopic.php?t=979124
--
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