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[]') { %><% if (fields[fieldId].fieldIsEnum) { var enumPrefix = angularAppName + '.'+ fields[fieldId].fieldType;%> | <% } else if (fields[fieldId].fieldTypeBlobContent == 'image') { %> | {{<%=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 %>}} <% } -%> <% } -%> <% } -%> | <% } } %>