setProperty( AvailableSettings.QUERY_TRANSLATOR, OgmQueryTranslatorFactory.class.getName() );
}
@Override
public Mapping buildMapping() {
final Mapping delegate = super.buildMapping();
return new Mapping() {
@Override
public IdentifierGeneratorFactory getIdentifierGeneratorFactory() {
return identifierGeneratorFactory;
}
@Override
public Type getIdentifierType(String entityName) throws MappingException {
return delegate.getIdentifierType( entityName );
}
@Override
public String getIdentifierPropertyName(String entityName) throws MappingException {
return delegate.getIdentifierPropertyName( entityName );
}
@Override
public Type getReferencedPropertyType(String entityName, String propertyName) throws MappingException {
return delegate.getReferencedPropertyType( entityName, propertyName );
}
};
}