List of usage examples for org.hibernate.boot.model.naming ObjectNameNormalizer ObjectNameNormalizer
ObjectNameNormalizer
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()); }