<% const keyPrefix = angularAppName + '.' + entityTranslationKey; %>

<%= entityClassHumanized %> {{<%= entityInstance %>.id}}


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