ID | <%_ for (fieldId in fields) { _%><%=fields[fieldId].fieldNameCapitalized%> | <%_ } _%> <%_ 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')) { _%><%=relationships[relationshipId].relationshipName%> | <%_ } _%> <%_ } _%>||||
---|---|---|---|---|---|---|
{{<%=entityInstance %>.id}} | <%_ for (fieldId in fields) { _%> <%_ if (fields[fieldId].fieldType == 'byte[]' && fields[fieldId].fieldTypeBlobContent == 'image') { _%>
|
<%_ } 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 { _%>{{<%=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 %>}} <%_ } _%> <%_ } _%> <%_ } _%> | <%_ } _%> <%_ } _%>