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

<%= entityClass %>s

<%_ if (searchEngine == 'elasticsearch') { _%>
<%_ } _%>
<%_ for (fieldId in fields) { _%> <%_ } _%> <%_ for (relationshipId in relationships) { _%> <%_ if (relationships[relationshipId].relationshipType == 'many-to-one' || (relationships[relationshipId].relationshipType == 'one-to-one' && relationships[relationshipId].ownerSide == true) || (relationships[relationshipId].relationshipType == 'many-to-many' && relationships[relationshipId].ownerSide == true && pagination == 'no')) { _%> <%_ } _%> <%_ } _%> infinite-scroll="loadPage(page + 1)" infinite-scroll-disabled="links['last'] == page"<% } %>> <%_ for (fieldId in fields) { _%> <%_ if (fields[fieldId].fieldType == 'byte[]' && fields[fieldId].fieldTypeBlobContent == 'image') { _%> <%_ } else if (fields[fieldId].fieldType == 'byte[]' && fields[fieldId].fieldTypeBlobContent == 'any') { _%> <%_ } else if (fields[fieldId].fieldIsEnum) { _%> <%_ } else if (fields[fieldId].fieldType == 'ZonedDateTime' || fields[fieldId].fieldType == 'Date') { _%> <%_ } else if (fields[fieldId].fieldType == 'LocalDate') { _%> <%_ } else { _%> <%_ } _%> <%_ } _%> <%_ 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')) { _%> <%_ } _%> <%_ } _%>
ID<%=fields[fieldId].fieldNameCapitalized%><%=relationships[relationshipId].relationshipName%>
{{<%=entityInstance %>.id}} {{<%= entityInstance %>.<%= fields[fieldId].fieldName %>ContentType}} {{byteSize(<%= entityInstance %>.<%= fields[fieldId].fieldName %>)}} {{abbreviate(<%= entityInstance %>.<%= fields[fieldId].fieldName %>)}} {{<%= entityInstance %>.<%= fields[fieldId].fieldName %>ContentType}} {{byteSize(<%= entityInstance %>.<%= fields[fieldId].fieldName %>)}}{{<%= entityInstance %>.<%= fields[fieldId].fieldName %>}}{{<%=entityInstance %>.<%=fields[fieldId].fieldName%> | date:'medium'}}{{<%=entityInstance %>.<%=fields[fieldId].fieldName%> | date:'mediumDate'}}{{<%=entityInstance %>.<%=fields[fieldId].fieldName%>}} <%_ 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 %>}} <%_ } _%> <%_ } _%> <%_ } _%>
<%_ if (pagination == 'pager') { _%> <%_ } else if (pagination == 'pagination') { _%> <%_ } _%>