protected void bindClass ( PersistentEntity domainClass , PersistentClass persistentClass , InFlightMetadataCollector mappings ) { // set lazy loading for now persistentClass . setLazy ( true ) ; final String entityName = domainClass . getName ( ) ; persistentClass . setEntityName ( entityName ) ; persistentClass . setJpaEntityName ( unqualify ( entityName ) ) ; persistentClass . setProxyInterfaceName ( entityName ) ; persistentClass . setClassName ( entityName ) ; // set dynamic insert to false persistentClass . setDynamicInsert ( false ) ; // set dynamic update to false persistentClass . setDynamicUpdate ( false ) ; // set select before update to false persistentClass . setSelectBeforeUpdate ( false ) ; // add import to mappings String en = persistentClass . getEntityName ( ) ; if ( mappings . getMetadataBuildingOptions ( ) . getMappingDefaults ( ) . isAutoImportEnabled ( ) && en . indexOf ( ' ' ) > 0 ) { String unqualified = unqualify ( en ) ; mappings . addImport ( unqualified , en ) ; } }
Binds the specified persistant class to the runtime model based on the properties defined in the domain class