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

markdown.template.ssp Maven / Gradle / Ivy

<%@ val domain: biz.lobachev.annette.data_dictionary.builder.rendering.markdown.MdDomain %>
<%@ val fieldHeader: String %>
<%@ val indexHeader: String %>
<%@ val relationHeader: String %>
\#  ${domain.name}

#for (group <- domain.groups)
* [${group.name}](\#${group.name})
#end

#if (domain.description.nonEmpty)
${domain.description}

#end
#for (group <- domain.groups)
\#\# ${group.name}

#if (group.description.nonEmpty)
${group.description}

#end
#for (entity <- group.entities)
\#\#\# ${entity.name} (${entity.fullTableName})

#if (entity.description.nonEmpty)
${entity.description}

#end
${fieldHeader}
#for (field <- entity.fields)
| ${field.dbFieldName} | ${field.datatype} | ${field.pk} | ${field.required} | ${field.description} |
#end

#if (entity.indexes.nonEmpty)
${indexHeader}
#for (index <- entity.indexes)
| ${index.fields} | ${index.unique} | ${index.description} |
#end

#end
#if (entity.relations.nonEmpty)
${relationHeader}
#for (relation <- entity.relations)
| ${relation.f1} | ${relation.relationEntityName} (${relation.relationEntityFullTableName}) | ${relation.f2} | ${relation.relationType} | ${relation.description} |
#end

#end
#end
#end




© 2015 - 2024 Weber Informatics LLC | Privacy Policy