tag « Version « JPA Q&A





1.  tag and generated="always"    forum.hibernate.org

Looks like this is updating the timestamp value before it does the update hibernate.cfg.xml: Code: Nov 2, 2010 5:27:20 PM org.hibernate.engine.Versioning increment FINEST: Incrementing: Tue Nov 02 16:42:16 EDT 2010 to 2010-11-02 17:27:20.234248 FINE: update EID.CIVILIANS set CIV_UPDATE_BY = 'JOHN', CIV_FNAME=?, CIV_LNAME=? where CIV_ID=? ...

2.  tag problem.    forum.hibernate.org

Hi there, We are using tag to implement automatic versioning but not having much luck with session.saveOrUpdate(). When we do NOT use tag in our Cat.hbm.xml, everything works fine and the record is updated in the database. But when we use tag, record in the database will NOT be updated. We neither see any 'update' statement being executed ...

3. Need help with tag    forum.hibernate.org

class tag problem: If I remove that then the the mapping is loaded fine, so I guess the class tag is fine. Position: I am not sure, I will try and read some more. Does anyone have any ideas how to read this error org.xml.sax.SAXParseException: The content of element type "class" must match "(meta*,(cache|jcs-cache)?,(id|composite-id),discriminator?,(version|timestamp)?,(property|many-to-one|one-to-one|component|dynamic-component|any|map|set|list|bag|idbag|array|primitive-array)*,(subclass*|joined-subclass*))". I mean what does these characters mean: ...

4. version tag is not recognized in Hibernate configuration    forum.hibernate.org

[b]Hibernate version:[/b] 2.1.4, 2.1.5 [b]Mapping documents:[/b] USER_ENTITY_SEQUENCE