hbm.id.hbm.ftl Maven / Gradle / Ivy
<#if embeddedid?exists>
<#list embeddedid.properties as keyproperty>
<#if !c2h.isManyToOne(keyproperty)>
<#list keyproperty.columns as column>
<#include "pkcolumn.hbm.ftl">
#list>
<#else>
<#list keyproperty.columns as column>
<#include "pkcolumn.hbm.ftl">
#list>
#if>
#list>
<#elseif !c2j.isComponent(property)>
unsaved-value="${c2h.getUnsavedValue(property)}"
#if>
<#if !property.basicPropertyAccessor>
access="${property.propertyAccessorName}"
#if>
>
<#assign metaattributable=property>
<#include "meta.hbm.ftl">
<#list property.columns as column>
<#include "pkcolumn.hbm.ftl">
#list>
<#if !c2h.isIdentifierGeneratorProperties(property)>
<#else>
<#assign parameters = c2h.getIdentifierGeneratorProperties(property)>
<#list c2h.getFilteredIdentifierGeneratorKeySet(property, props) as paramkey>
${parameters.get(paramkey)}
#list>
#if>
<#else>
unsaved-value="${c2h.getUnsavedValue(property)}"
#if>
<#if !property.basicPropertyAccessor>
access="${property.propertyAccessorName}"
#if>
>
<#list property.value.properties as keyproperty>
<#if !c2h.isManyToOne(keyproperty)>
<#list keyproperty.columns as column>
<#include "pkcolumn.hbm.ftl">
#list>
<#else>
<#list keyproperty.columns as column>
<#include "pkcolumn.hbm.ftl">
#list>
#if>
#list>
#if>