I have followed the code given in Chapter 4, Section
Generated and default property values, to get generated value for lastModified property.
But it is not working with Oracle 9i.
Do you have a working example? Please check my posting here.
http://forum.hibernate.org/viewtopic.php?t=986972
Also can you explain me, how a refresh (executing a SELECT statement after INSERT of entity) gets generated value for the property 'lastModified'. What should the DDL of this entity look like. Who actually inserts the updated value into this property - hibernate code or Database.
If it database, does hibernate adds a default value to the property in DDL.
I have a feeling that hibernate code is not property tested in all areas. I found that there is a fix for generated property for components, in latest version 3.2.6 ga.
http://opensource.atlassian.com/project ... e/HHH-1471
But still this fix is also not working.