All Downloads are FREE. Search and download functionalities are using the official Maven repository.

template.class.ftl Maven / Gradle / Ivy

[#ftl]
/**
 * @opt attributes
 * @hidden
 */
class UMLOptions {}
[#assign referTables=[]]

[#list image.tables as table]
/**
 * @note ${table.comment!}
[#list table.foreignKeys as fk]
 * @depend - - - ${fk.referencedTable.name.value?lower_case}
 [#if !image.contains(fk.referencedTable.name)]
   [#if !(referTables?seq_contains(fk.referencedTable))]
   [#assign referTables=referTables + [fk.referencedTable]]
   [/#if]
 [/#if]
[/#list]
 */
class ${table.name.value?lower_case}{
[#list table.foreignKeys as fk]
 public ${fk.referencedTable.name.value?lower_case}  [#list fk.columns as column]${column.value?lower_case}[/#list];
[/#list]
}
[/#list]


[#list referTables as table]
/**
[#if table.schema??]
	[#assign tableid=table.schema+"."+table.name]
[#else]
	[#assign tableid=table.name]
[/#if]
 * [#if (database.getTable(tableid)?exists)]
 * @note ${database.getTable(tableid).comment!}
 * [/#if]
 */
class ${table.name.value?lower_case}{}
[/#list]




© 2015 - 2025 Weber Informatics LLC | Privacy Policy