setProperty( "hibernate.search.massindexer.factoryclass", "org.hibernate.ogm.massindex.OgmMassIndexerFactory" );
}
@Override
public Mapping buildMapping() {
final Mapping delegate = super.buildMapping();
return new Mapping() {
public IdentifierGeneratorFactory getIdentifierGeneratorFactory() {
return identifierGeneratorFactory;
}
public Type getIdentifierType(String entityName) throws MappingException {
return delegate.getIdentifierType( entityName );
}
public String getIdentifierPropertyName(String entityName) throws MappingException {
return delegate.getIdentifierPropertyName( entityName );
}
public Type getReferencedPropertyType(String entityName, String propertyName) throws MappingException {
return delegate.getReferencedPropertyType( entityName, propertyName );
}
};
}