[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-1471?page=all ]
Steve Ebersole resolved HHH-1471:
---------------------------------
Resolution: Fixed
trunk / 3.2
If the 'generated' attribute is set to 'insert' or
'always' on the property of a component it is ignored and the value is not read
from the database.
-----------------------------------------------------------------------------------------------------------------------------------------------------
Key: HHH-1471
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-1471
Project: Hibernate3
Type: Bug
Components: core
Versions: 3.1.2
Reporter: Darran Lofthouse
Assignee: Steve Ebersole
Fix For: 3.2.2
Attachments: patch.txt
If the 'generated' attribute is set to 'insert' or 'always' on
the property of a component it is ignored and the value is not read from the database.
Turning on debug logging shows no select statement being executed to retrieve the
property. Using the generated attribute in the parent class works fine.
I have updated the existing ComponentTest test case so the Person class now has a
username property that should be retrieved from the database with generated set to
'insert'.
--
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