public void bindClass ( PersistentEntity entity , InFlightMetadataCollector mappings , String sessionFactoryBeanName ) throws MappingException { //if (domainClass.getClazz().getSuperclass() == Object.class) { if ( entity . isRoot ( ) ) { bindRoot ( ( HibernatePersistentEntity ) entity , mappings , sessionFactoryBeanName ) ; } }
Binds a Grails domain class to the Hibernate runtime meta model