Hibernate version: 3.0
Hi all,
in my project I defined a class-mapping-property as:
Code:
<property name="tmsInserimento" type="timestamp" generated="always">
<column name="tms_inserimento" />
</property>
because I wish to automatically update that timestamp on every insert and update, but at session creation time, I get this exception:
18:41:48,623 ERROR XMLHelper:59 - Error parsing XML: XML InputStream(40) Attribute "generated" must be declared for element type "property".
Initial SessionFactory creation failed.org.hibernate.MappingException: Error reading resource: it/neateng/hibernate/implementation/Clienti.hbm.xml
I'm using DTD for hibernate 3.0, where generated="always" is defined!
Anyone can help?
Thanks!
Enrico