{{<%=entityInstance %>.id}} |
<%_ for (idx in fields) {
const fieldName = fields[idx].fieldName;
const fieldNameCapitalized = fields[idx].fieldNameCapitalized;
const fieldType = fields[idx].fieldType;
const fieldTypeBlobContent = fields[idx].fieldTypeBlobContent; _%>
<%_ if ((fieldType == 'byte[]' || fieldType === 'ByteBuffer') && fieldTypeBlobContent == 'image') { _%>
{{<%= entityInstance %>.<%= fieldName %>ContentType}}, {{vm.byteSize(<%= entityInstance %>.<%= fieldName %>)}}
|
<%_ } else if ((fieldType === 'byte[]' || fieldType === 'ByteBuffer') && fieldTypeBlobContent == 'any') { _%>
open
{{<%= entityInstance %>.<%= fieldName %>ContentType}}, {{vm.byteSize(<%= entityInstance %>.<%= fieldName %>)}}
|
<%_ } else if (fields[idx].fieldIsEnum) { _%>
{{<%= entityInstance %>.<%= fieldName %>}} |
<%_ } else if (fieldType == 'ZonedDateTime') { _%>
{{<%=entityInstance %>.<%=fieldName%> | date:'medium'}} |
<%_ } else if (fieldType == 'LocalDate') { _%>
{{<%=entityInstance %>.<%=fieldName%> | date:'mediumDate'}} |
<%_ } else { _%>
{{<%=entityInstance %>.<%=fieldName%>}} |
<%_ } _%>
<%_ } _%>
<%_ for (idx in relationships) {
const relationshipType = relationships[idx].relationshipType;
const ownerSide = relationships[idx].ownerSide;
const relationshipFieldName = relationships[idx].relationshipFieldName;
const relationshipFieldNamePlural = relationships[idx].relationshipFieldNamePlural;
const otherEntityName = relationships[idx].otherEntityName;
const otherEntityStateName = relationships[idx].otherEntityStateName;
const otherEntityField = relationships[idx].otherEntityField;
const otherEntityFieldCapitalized = relationships[idx].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 %>}}
<%_ } _%>
<%_ } _%>
<%_ } _%>
|
<%_ } _%>
<%_ } _%>
|