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 (18 Oct 2005, 14:51) Replies: 0, Views: 29064
Subject: Re: Middlegen version setup
Here is one way to get Middlegen to generate the <version> tag content
in the xxx.hbm.xml files.

In the Middlegen GUI, the only choice for "column specialty" is
"property", but we need another choice: "version".  To get around this,
edit the model-prefs.properties file for your application. Find the line
for your version attribute that says something like:

   hibernate.tables.CLAIM.columns.VERSION.columnspecialty=property

and change it to:

   hibernate.tables.CLAIM.columns.VERSION.columnspecialty=version

This is what would happen if you chose "version" from the drop down in
the Middlegen GUI.  Then re-run Middlegen as usual to get the desired
<version> section in your xxx.hbm.xml file(s).
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]