\${${className}}This resolves the long version of the current class name
You often see that properties of an instance are iterated. The variable name of a property is then 'p':
${p.name}This is the name of the property as it is used in the current instance. You need this value if you want to access that property in a controller (similar to this: domainClassInstance."${params.propertyName}").
${p.referencedDomainClass?.propertyName}This one gives you the propertyName of the referenced domain class, thus the domain class of the property p. The propertyName is equal to the controller name if you stick to the convention.
${p.referencedDomainClass?.fullName}Sometimes you need to have the full class name with the whole package notation. This can be useful for domain class instantiation (see my last post).
${p.referencedDomainClass?.shortName}This is the actual class name omitting the package notation.
No comments:
Post a Comment