RootEntityBinder(HibernateMappingBinder hibernateMappingBinder, Element entityElement) {
super( hibernateMappingBinder, entityElement );
}
public void process(Element entityElement) {
EntityBinding entityBinding = new EntityBinding();
basicEntityBinding( entityElement, entityBinding, null );
basicTableBinding( entityElement, entityBinding );
Attribute mutableAttribute = entityElement.attribute( "mutable" );
if ( mutableAttribute != null ) {
entityBinding.setMutable( Boolean.valueOf( mutableAttribute.getValue() ) );
}
Attribute whereAttribute = entityElement.attribute( "where" );
if ( whereAttribute != null ) {
entityBinding.setWhereFilter( whereAttribute.getValue() );
}
Attribute polymorphismAttribute = entityElement.attribute( "polymorphism" );
if ( polymorphismAttribute != null ) {
entityBinding.setExplicitPolymorphism( "explicit".equals( polymorphismAttribute.getValue() ) );
}
Attribute rowidAttribute = entityElement.attribute( "rowid" );
if ( rowidAttribute != null ) {
entityBinding.setRowId( rowidAttribute.getValue() );
}
bindIdentifier( entityElement, entityBinding );
bindDiscriminator( entityElement, entityBinding );
bindVersion( entityElement, entityBinding );