Thread:
 Middlegen timestamp/version setup? (attn: David) 
 fisherv   17 Oct 2005, 12:12 
 Re: Middlegen version setup 
 fisherv   18 Oct 2005, 14:51 
 Re: Middlegen timestamp/version setup? (attn: D... 
 abnerp   27 Apr 2006, 07:37 

Comment
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
From: fisherv (17 Oct 2005, 12:12) Replies: 2, Views: 30274
Subject: Middlegen timestamp/version setup? (attn: David)
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
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
© Copyright 2006, Red Hat Middleware, LLC. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc. [Privacy Policy]