{{<%=entityInstance %>.id}} |
<%_ for (fieldId in fields) { _%>
<%_ if (fields[fieldId].fieldType == 'byte[]' && fields[fieldId].fieldTypeBlobContent == 'image') { _%>
{{<%= entityInstance %>.<%= fields[fieldId].fieldName %>ContentType}} {{byteSize(<%= entityInstance %>.<%= fields[fieldId].fieldName %>)}}
|
<%_ } else if (fields[fieldId].fieldType == 'byte[]' && fields[fieldId].fieldTypeBlobContent == 'any') { _%>
{{abbreviate(<%= entityInstance %>.<%= fields[fieldId].fieldName %>)}} {{<%= entityInstance %>.<%= fields[fieldId].fieldName %>ContentType}} {{byteSize(<%= entityInstance %>.<%= fields[fieldId].fieldName %>)}} |
<%_ } else if (fields[fieldId].fieldIsEnum) { _%>
{{<%= entityInstance %>.<%= fields[fieldId].fieldName %>}} |
<%_ } else if (fields[fieldId].fieldType == 'ZonedDateTime' || fields[fieldId].fieldType == 'Date') { _%>
{{<%=entityInstance %>.<%=fields[fieldId].fieldName%> | date:'medium'}} |
<%_ } else if (fields[fieldId].fieldType == 'LocalDate') { _%>
{{<%=entityInstance %>.<%=fields[fieldId].fieldName%> | date:'mediumDate'}} |
<%_ } else { _%>
{{<%=entityInstance %>.<%=fields[fieldId].fieldName%>}} |
<%_ } _%>
<%_ } _%>
<%_ for (relationshipId in relationships) {
var relationshipType = relationships[relationshipId].relationshipType;
var ownerSide = relationships[relationshipId].ownerSide;
var relationshipFieldName = relationships[relationshipId].relationshipFieldName;
var otherEntityName = relationships[relationshipId].otherEntityName;
var otherEntityField = relationships[relationshipId].otherEntityField;
var otherEntityFieldCapitalized = relationships[relationshipId].otherEntityFieldCapitalized; _%>
<%_ if (relationshipType == 'many-to-one'
|| (relationshipType == 'one-to-one' && ownerSide == true)
|| (relationshipType == 'many-to-many' && ownerSide == true && pagination == 'no')) { _%>
<%_ if (otherEntityName == 'user') { _%>
<%_ if (relationshipType == 'many-to-many') { _%>
{{<%= relationshipFieldName %>.<%= otherEntityField %>}}{{$last ? '' : ', '}}
<%_ } else { _%>
<%_ if (dto == 'no') { _%>
{{<%= entityInstance + "." + relationshipFieldName + "." + otherEntityField %>}}
<%_ } else { _%>
{{<%= entityInstance + "." + relationshipFieldName + otherEntityFieldCapitalized %>}}
<%_ } _%>
<%_ } _%>
<%_ } else { _%>
<%_ if (relationshipType == 'many-to-many') { _%>
{{<%= relationshipFieldName %>.<%= otherEntityField %>}}{{$last ? '' : ', '}}
<%_ } else { _%>
<%_ if (dto == 'no') { _%>
})">{{<%= entityInstance + "." + relationshipFieldName + "." + otherEntityField %>}}
<%_ } else { _%>
})">{{<%= entityInstance + "." + relationshipFieldName + otherEntityFieldCapitalized %>}}
<%_ } _%>
<%_ } _%>
<%_ } _%>
|
<%_ } _%>
<%_ } _%>
|