* @see org.codehaus.groovy.grails.domain.GrailsDomainClass#getPropertyByName(java.lang.String)
*/
public GrailsDomainClassProperty getPropertyByName(String name) {
GrailsDomainClassProperty persistentProperty = getPersistentProperty(name);
if (persistentProperty == null) {
throw new InvalidPropertyException("No property found for name ["+name+"] for class ["+getClazz()+"]");
}
return persistentProperty;
}