% import org.codehaus.groovy.grails.orm.hibernate.support.ClosureEventTriggeringInterceptor as Events %>
<%=packageName%>
${className} List
${className} List
\${flash.message}
<%
excludedProps = ['version',
Events.ONLOAD_EVENT,
Events.BEFORE_DELETE_EVENT,
Events.BEFORE_INSERT_EVENT,
Events.BEFORE_UPDATE_EVENT]
props = domainClass.properties.findAll { !excludedProps.contains(it.name) && it.type != Set.class }
Collections.sort(props, comparator.constructors[0].newInstance([domainClass] as Object[]))
props.eachWithIndex { p,i ->
if(i < 6) {
if(p.isAssociation()) { %>
${p.naturalName} |
<% } else { %>
<% } } } %>
<% props.eachWithIndex { p,i ->
if(i == 0) { %>
\${fieldValue(bean:${propertyName}, field:'${p.name}')} |
<% } else if(i < 6) { %>
\${fieldValue(bean:${propertyName}, field:'${p.name}')} |
<% } } %>