Optimistic Locking - problem with version tag ---------------------------------------------
Key: HIB-154 URL: http://jira.andromda.org/browse/HIB-154 Project: Hibernate Cartridge Type: Bug Versions: 3.2-RC1 Reporter: Simon Gilligan Assigned to: Carlos Cuenca Setting the entity tag andromda.hibernate.version=test, generates this in the hbm.xml: <version name="version" type="int" column="version"/> 1.Both the property name and database column name are set the same. The database column name should be uppercase: <version name="version" type="int" column="VERSION"/> so that on schema generation, it matches the uppercase used elsewhere. 2. The column name should be separatly settable. This will allow (for example): <version name="version" type="int" column="OPT_LOCK_CONTROL"/> That is, the property name is different to the database column, which allows mapping to an existing column. This was raised in this forum thread: http://galaxy.andromda.org/forum/viewtopic.php?t=1417 ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click