[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-1471?page=c...
]
Shyamsunder commented on HHH-1471:
----------------------------------
I have used hibernate 3.2.6 GA library. But the the following column is never updated in
database. I have added this column in an Entity and in a component. A select query is
issued after the entity is saved. But lastModified column has null value.
<property
name="lastModified"
column="LAST_MODIFIED"
update="false"
insert="false"
generated="always"
Can some one post a working example? Also let me know if my hibernate mapping is valid.
Thanks
Shyam
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
Issue Type: Bug
Components: core
Affects 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