<% } else { %>
<% if (geolocated) { %>
<% } %>
<% if (geolocated) { %>
<% } %>
<%
if(oneToOneProps) {
def props = []
oneToOneProps.each {
def referencedType = it.type.name
if (referencedType.lastIndexOf('.') > 0) {
referencedType = referencedType.substring(referencedType.lastIndexOf('.')+1)
props << referencedType.toLowerCase()
}
}
def unique = props as Set
unique.each {
if(it != classNameLowerCase.toLowerCase() ) {
%>
<% } }
}
if(oneToManyProps && !oneToManyProps.isEmpty()) {
def props = []
oneToManyProps.each { props << it.getReferencedDomainClass().getName().toLowerCase() }
def unique = props as Set
unique.each {
if(it != classNameLowerCase.toLowerCase() ) {
%>
<% } }
}
%>
<%
if(oneToOneProps) {
def props = []
oneToOneProps.each {
def referencedType = it.type.name
if (referencedType.lastIndexOf('.') > 0) {
referencedType = referencedType.substring(referencedType.lastIndexOf('.')+1)
props << referencedType.toLowerCase()
}
}
def unique = props as Set
unique.each {
if(it != classNameLowerCase.toLowerCase() ) {
%>
<% } }
}
if(oneToManyProps && !oneToManyProps.isEmpty()) {
def props = []
oneToManyProps.each { props << it.getReferencedDomainClass().getName().toLowerCase() }
def unique = props as Set
unique.each {
if(it != classNameLowerCase.toLowerCase() ) {
%>
<% } }
}
%>