Q. When using the table-per-subclass inheritance mapping, if you have mapped the parent to use the version element for optimisitic locking, we are assuming that you do not need to add a version element to the subtype's mapping, since when you update an instance of the subtype the version property should be updated in the parent's table. Is this correct?
Thanks, Kevin
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version: 3.0.4
Mapping documents:
Code between sessionFactory.openSession() and session.close():
Full stack trace of any exception that occurs:
Name and version of the database you are using: DB2 UDB 8.2.3
The generated SQL (show_sql=true):
Debug level Hibernate log excerpt: