|
From: <hib...@li...> - 2006-07-27 21:52:06
|
Author: max...@jb...
Date: 2006-07-27 17:51:51 -0400 (Thu, 27 Jul 2006)
New Revision: 10177
Modified:
trunk/HibernateExt/tools/src/templates/hbm/persistentclass.hbm.ftl
Log:
whoops - forgot to handle timestamp when ensuring order in hbm.xml
Modified: trunk/HibernateExt/tools/src/templates/hbm/persistentclass.hbm.ftl
===================================================================
--- trunk/HibernateExt/tools/src/templates/hbm/persistentclass.hbm.ftl 2006-07-27 07:25:43 UTC (rev 10176)
+++ trunk/HibernateExt/tools/src/templates/hbm/persistentclass.hbm.ftl 2006-07-27 21:51:51 UTC (rev 10177)
@@ -72,11 +72,11 @@
<#-- version has to be done explicitly since Annotation's does not list version first -->
<#if pojo.hasVersionProperty()>
<#assign property=clazz.getVersion()/>
-<#include "version.hbm.ftl"/>
+<#include "${c2h.getTag(property)}.hbm.ftl"/>
</#if>
<#foreach property in clazz.getUnjoinedPropertyIterator()>
-<#if c2h.getTag(property)!="version">
+<#if c2h.getTag(property)!="version" && c2h.getTag(property)!="timestamp">
<#include "${c2h.getTag(property)}.hbm.ftl"/>
</#if>
</#foreach>
|