hbm.property.hbm.ftl Maven / Gradle / Ivy
type="${property.value.typeName}"
#if>
<#if !property.updateable>
update="false"
#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">
<#list property.selectables as column>
<#if !column.isFormula()>
<#include "column.hbm.ftl">
#if>
#list>
<#if property.value.typeParameters?exists>
<#list property.value.typeParameters.entrySet() as entry>
${entry.value}
#list>
#if>