Example usage for org.hibernate.boot.model.naming ObjectNameNormalizer ObjectNameNormalizer

List of usage examples for org.hibernate.boot.model.naming ObjectNameNormalizer ObjectNameNormalizer

Introduction

In this page you can find the example usage for org.hibernate.boot.model.naming ObjectNameNormalizer ObjectNameNormalizer.

Prototype

ObjectNameNormalizer

Source Link

Usage

From source file:org.ligoj.bootstrap.core.dao.SequenceIdentifierGeneratorStrategyProviderTest.java

License:MIT License

/**
 * Check strategy configuration./*ww w  .j  av  a  2  s.  c  o m*/
 */
@Test
void testConfiguration() {
    final var params = new Properties();
    params.put("identity_tables", "summy.seg");
    params.put(PersistentIdentifierGenerator.IDENTIFIER_NORMALIZER, new ObjectNameNormalizer() {

        @Override
        protected MetadataBuildingContext getBuildingContext() {
            return null;
        }
    });

    var optimizedSequenceStyleGenerator = newStyleGenerator();
    optimizedSequenceStyleGenerator.configure(StringType.INSTANCE, params, newServiceRegistry());
}