First Commit - Source Code from Reply
This commit is contained in:
40
dbcmnpsrc/FE/mnpdev/build/hibernate/genLib/property.hbm.ftl
Normal file
40
dbcmnpsrc/FE/mnpdev/build/hibernate/genLib/property.hbm.ftl
Normal file
@@ -0,0 +1,40 @@
|
||||
<property
|
||||
name="${property.name}"
|
||||
<#if property.value.typeName.indexOf("mnp.database.hb.types")!=-1>
|
||||
type="${property.value.typeName}Type"
|
||||
<#else>
|
||||
type="${property.value.typeName}"
|
||||
</#if>
|
||||
|
||||
<#if !property.updateable>
|
||||
update="false"
|
||||
</#if>
|
||||
<#if property.name?matches("oraCutOver") || property.name?matches("ipotesiRifiuto")>
|
||||
generated="insert"
|
||||
</#if>
|
||||
<#if !property.insertable>
|
||||
insert="false"
|
||||
</#if>
|
||||
<#if !property.basicPropertyAccessor>
|
||||
access="${property.propertyAccessorName}"
|
||||
</#if>
|
||||
<#if property.lazy>
|
||||
lazy="true"
|
||||
</#if>
|
||||
<#if !property.optimisticLocked>
|
||||
optimistic-lock="false"
|
||||
</#if>
|
||||
<#if property.value.hasFormula()>
|
||||
<#assign formula = c2h.getFormulaForProperty(property)>
|
||||
<#if formula?has_content>
|
||||
formula="${formula.text}"
|
||||
</#if>
|
||||
</#if>
|
||||
>
|
||||
<#assign metaattributable=property>
|
||||
<#include "meta.hbm.ftl">
|
||||
<#foreach column in property.columnIterator>
|
||||
<#include "column.hbm.ftl">
|
||||
</#foreach>
|
||||
</property>
|
||||
|
||||
Reference in New Issue
Block a user