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