Skip to content

Commit

Permalink
HHH-18337 - SequenceStyleGenerator not respecting physical naming str…
Browse files Browse the repository at this point in the history
…ategy
  • Loading branch information
sebersole committed Sep 16, 2024
1 parent 744732b commit efd4528
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,16 +126,18 @@ public void testDefaultedTableBackedConfiguration() {
() -> buildingContext.getBootstrapContext().getTypeConfiguration(),
serviceRegistry
);
Database database = new Database( buildingContext.getBuildingOptions() );
GeneratorCreationContextImpl generatorCreationContext = new GeneratorCreationContextImpl( database );
Properties props = buildGeneratorPropertiesBase( buildingContext );
SequenceStyleGenerator generator = new SequenceStyleGenerator();
generator.create( generatorCreationContext );
generator.configure(
new TypeConfiguration().getBasicTypeRegistry()
.resolve( StandardBasicTypes.LONG ),
props,
serviceRegistry
);

Database database = new Database( buildingContext.getBuildingOptions() );
generator.registerExportables( database );
generator.initialize( SqlStringGenerationContextImpl.forTests( database.getJdbcEnvironment() ) );

Expand Down Expand Up @@ -276,17 +278,19 @@ public void testForceTableUse() {
() -> buildingContext.getBootstrapContext().getTypeConfiguration(),
serviceRegistry
);
Database database = new Database( buildingContext.getBuildingOptions() );
GeneratorCreationContextImpl generatorCreationContext = new GeneratorCreationContextImpl( database );
Properties props = buildGeneratorPropertiesBase( buildingContext );
props.setProperty( SequenceStyleGenerator.FORCE_TBL_PARAM, "true" );

SequenceStyleGenerator generator = new SequenceStyleGenerator();
generator.create( generatorCreationContext );
generator.configure(
new TypeConfiguration().getBasicTypeRegistry()
.resolve( StandardBasicTypes.LONG ),
props,
serviceRegistry
);
Database database = new Database( buildingContext.getBuildingOptions() );
generator.registerExportables( database );
generator.initialize( SqlStringGenerationContextImpl.forTests( database.getJdbcEnvironment() ) );

Expand Down

0 comments on commit efd4528

Please sign in to comment.