<% 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()) { %> <% } else { %> <% } } } %> <% props.eachWithIndex { p,i -> if(i == 0) { %> <% } else if(i < 6) { %> <% } } %>
${p.naturalName}
\${fieldValue(bean:${propertyName}, field:'${p.name}')}\${fieldValue(bean:${propertyName}, field:'${p.name}')}