I am trying to implement Optimistic Locking via Middlegen IDE with JBoss
4.0.2 and Hibernate 3.0.5.
I saw this tidbit in the original text of this forum:
------------------------------------------------------------
David, how did you get middlegen to create the timestamp tag?
<timestamp name="departureUtc" column="departure_utc" />
Add this in your node column in your preference file :
<entry key="columnspecialty" value="version" />
------------------------------------------------------------
Could someone let me know to which "preference file" we should add the
<entry.../> line mentioned above?
Maybe a sample section of the file would be helpful too.
I actually plan to use "version" instead of "timestamp".
It's easy enough to add the timestamp tag manually, but it will be wiped
out sny time we update the schema and re-run Middlegen! So we need to
be able to add this via Middlegen config somehow.
Thanks!
Vick |