<% var keyPrefix = angularAppName + '.'+ entityInstance; %>

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

<%_ for (fieldId in fields) { _%> <%_ } _%> <%_ for (relationshipId in relationships) { var relationshipType = relationships[relationshipId].relationshipType; var ownerSide = relationships[relationshipId].ownerSide; var relationshipName = relationships[relationshipId].relationshipName; 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)) { _%> <%_ } _%> <%_ } _%>
Field Value
<%=fields[fieldId].fieldNameCapitalized%> <%_ if (fields[fieldId].fieldIsEnum) { _%> {{<%= entityInstance %>.<%= fields[fieldId].fieldName %>}} <%_ } else if (fields[fieldId].fieldType == 'byte[]' && fields[fieldId].fieldTypeBlobContent == 'image') { _%> <%_ } else { _%> {{<%= entityInstance %>.<%=fields[fieldId].fieldName%>}} <%_ } _%>
<%=relationshipName%> <%_ 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 %>}} <%_ } _%> <%_ } _%> <%_ } _%>