-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: generated="always"
PostPosted: Fri Aug 25, 2006 1:47 pm 
Newbie

Joined: Fri Aug 25, 2006 1:36 pm
Posts: 1
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.