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

doc.tables.table.ftl Maven / Gradle / Ivy

There is a newer version: 7.0.0.Beta1
Show newest version
<#import "/doc/common.ftl" as common>




	
		Hibernate Mappings - Table Info
		
	
	

		<@common.header/>

		

Schema ${dochelper.getQualifiedSchemaName(table)}

Table ${table.name}

<#if table.comment?exists>

${table.comment}

<#list table.columns as column>
Column Summary
Name SqlType Length Precision Scale Nullable Unique
${column.name} ${dochelper.getSQLTypeName(column)} ${dochelper.getLength(column)} ${dochelper.getPrecision(column)} ${dochelper.getScale(column)} ${column.nullable?string} ${column.unique?string}
<#-- SHOW THE PRIMARY KEY --> <#if table.hasPrimaryKey()> <#else>
Primary Key
Name Columns
<#if table.primaryKey.name?has_content> ${table.primaryKey.name} <#else> Name not specified <#list dochelper.getPrimaryKeyColumnIterator(table) as column> ${column.name}
No Primary Key
<#-- SHOW THE FOREIGN KEYS --> <#if !table.foreignKeys.isEmpty()> <#list table.foreignKeys.values() as foreignKey>
Foreign Keys
Name Referenced Table Columns
${foreignKey.name?default("Name not specified")} ${foreignKey.referencedTable.name} <#list foreignKey.columns as column> ${column.name}
<#-- SHOW THE UNIQUE KEYS --> <#if !table.uniqueKeys.isEmpty()> <#list table.uniqueKeys.values() as uniqueKey>
Unique Keys
Name Columns
${uniqueKey.name?default("Name not specified")} <#list uniqueKey.columns as column> ${column.name}
<#-- SHOW THE TABLE INDEXES --> <#if !table.indexes.isEmpty()> <#list table.indexes.values() as index>
Indexes
Name Columns
${index.name?default("Name not specificed")} <#list index.columns as column> ${column.name}
<#if !table.columns.isEmpty()>

Column Detail

<#list table.columns as column>

${column.name}

  • Type: ${dochelper.getSQLTypeName(column)}
  • Length: ${dochelper.getLength(column)}
  • Precision: ${dochelper.getPrecision(column)}
  • Scale: ${dochelper.getScale(column)}
  • Nullable: ${column.nullable?string}
  • Unique: ${column.unique?string}
  • Comment: ${column.comment?if_exists}
<#--

Mappings:

<#list dochelper.getProperties(table, column) as property> property.persistentClass.className - property.name -->




© 2015 - 2024 Weber Informatics LLC | Privacy Policy