doc.entities.entity.ftl Maven / Gradle / Ivy
<#import "/doc/common.ftl" as common>
Hibernate Mappings - Entity Info
<@common.header/>
<#if class.packageName?length gt 0>
${class.packageName}
<#else>
Default package
#if>
Entity ${class.getShortName()}
-
<#assign superClasses=dochelper.getInheritanceHierarchy(class)>
<#list superClasses?reverse as superClass>
<#-- whitespace is significant here -->
<#if superClass_index gt 0>#if>${superClass.qualifiedDeclarationName}
class="first"#if>>
-
#list>
<#-- whitespace is significant here -->
<#if class.subclass>#if>${class.qualifiedDeclarationName}
<#list superClasses as superClass>
#list>
<#if class.getMetaAsString("class-description")?has_content>
${class.getMetaAsString("class-description")}
#if>
<#if class.hasIdentifierProperty()>
<#assign propertyIdentifier = class.getIdentifierProperty()>
Identifier Summary
Name
Column
Type
Description
<#if dochelper.getComponentPOJO(propertyIdentifier)?exists>
<#assign compoclass = dochelper.getComponentPOJO(propertyIdentifier)>
<#list compoclass.allPropertiesIterator as property>
<#assign columnIterator = property.getValue().selectables.iterator()>
<#assign rowspan = property.getValue().getColumnSpan()>
0)>rowspan="${rowspan}"#if>>
${property.name}
<#if (rowspan > 0)>
<#assign column = columnIterator.next()>
<#if column.isFormula()>
<#else>
${column.getName()}
#if>
<#else>
#if>
0)>rowspan="${rowspan}"#if>>
<#if dochelper.getComponentPOJO(property)?exists>
${compoclass.getJavaTypeName(property, jdk5)?html?default(" ")}
<#else>
${compoclass.getJavaTypeName(property, jdk5)?html?default(" ")}
#if>
0)>rowspan="${rowspan}"#if>>
<#if compoclass.hasFieldJavaDoc(property)?exists>
${compoclass.getFieldDescription(property)?default(" ")}
<#else>
#if>
<#if (rowspan > 1)>
<#list columnIterator as column>
${column.name}
#list>
#if>
#list>
<#else>
${propertyIdentifier.name}
Column
${class.getJavaTypeName(propertyIdentifier, jdk5)?html?default(" ")}
<#if class.hasFieldJavaDoc(propertyIdentifier)>
${class.getFieldDescription(propertyIdentifier)?default(" ")}
<#else>
#if>
#if>
<#else>
<#list superClasses as superClass>
<#if superClass.hasIdentifierProperty()>
<#assign identifier = superClass.identifierProperty>
<#assign superClassRef = docFileManager.getRef(docFile, docFileManager.getEntityDocFileByDeclarationName(superClass))>
Identifier Summary
Identifier inherited from entity ${superClass.shortName}
${identifier.name}
#if>
#list>
#if>
<#if class.hasVersionProperty()>
<#assign version = class.versionProperty>
Version Summary
Name
Column
Type
Description
${version.name}
Column
${class.getJavaTypeName(version, jdk5)?html?default(" ")}
<#if class.hasFieldJavaDoc(version)>
${class.getFieldDescription(version)?default(" ")}
<#else>
#if>
<#else>
<#list superClasses as superClass>
<#if superClass.hasVersionProperty()>
<#assign version = superClass.versionProperty>
<#assign superClassRef = docFileManager.getRef(docFile, docFileManager.getEntityDocFileByDeclarationName(superClass))>
Version Summary
Version inherited from entity ${superClass.shortName}
${version.name}
#if>
#list>
#if>
<#assign properties = dochelper.getOrderedSimpleProperties(class)>
<#if !properties.empty>
Property Summary
Name
Column
Access
Type
Description
<#list properties as property>
<#assign columnIterator = property.getValue().selectables.iterator()>
<#assign rowspan = property.getValue().getColumnSpan()>
0)>rowspan="${rowspan}"#if>>
${property.name}
<#if (rowspan > 0)>
<#assign column = columnIterator.next()>
<#if column.isFormula()>
<#else>
${column.getName()}
#if>
<#else>
#if>
0)>rowspan="${rowspan}"#if>>
${property.getPropertyAccessorName()} (get / set)
0)>rowspan="${rowspan}"#if>>
<#if dochelper.getComponentPOJO(property)?exists>
${class.getJavaTypeName(property, jdk5)?html?default(" ")}
<#else>
${class.getJavaTypeName(property, jdk5)?html?default(" ")}
#if>
0)>rowspan="${rowspan}"#if>>
<#if class.hasFieldJavaDoc(property)>
${class.getFieldDescription(property)?default(" ")}
<#else>
#if>
<#if (rowspan > 1)>
<#list columnIterator as column>
${column.name}
#list>
#if>
#list>
#if>
<#assign propertyHeader = properties.empty>
<#list superClasses as superClass>
<#assign superProperties = dochelper.getOrderedSimpleProperties(superClass)>
<#if !superProperties.empty>
<#assign superClassRef = docFileManager.getRef(docFile, docFileManager.getEntityDocFileByDeclarationName(superClass))>
<#if propertyHeader>
<#assign propertyHeader = false>
Property Summary
#if>
Properties inherited from entity ${superClass.shortName}
<#list superProperties as property>
${property.name}<#if property_has_next>, #if>
#list>
#if>
#list>
<#if class.hasIdentifierProperty()>
<#assign identifier = class.identifierProperty>
Identifier Detail
<#if dochelper.getComponentPOJO(identifier)?exists>
<#assign identifierClass = dochelper.getComponentPOJO(identifier)>
<#list identifierClass.allPropertiesIterator as property>
${property.name}
#list>
<#else>
${identifier.name}
#if>
#if>
<#if class.hasVersionProperty()>
<#assign version = class.versionProperty>
Version Detail
<#assign version = class.versionProperty>
${version.name}
#if>
<#assign properties = dochelper.getSimpleProperties(class)>
<#if !properties.empty>
Property Detail
<#list properties as property>
${property.name}
#list>
#if>