in google-cloud-spanner-hibernate-tools/src/main/java/com/google/cloud/spanner/hibernate/PooledBitReversedSequenceStyleGenerator.java [248:266]
public void configure(Type type, Properties params, ServiceRegistry serviceRegistry)
throws MappingException {
JdbcEnvironment jdbcEnvironment = serviceRegistry.getService(JdbcEnvironment.class);
this.dialect = jdbcEnvironment.getDialect();
this.sequenceName = determineSequenceName(jdbcEnvironment, params);
this.fetchSize = determineFetchSize(params);
int initialValue = determineInitialValue(params);
this.select = buildSelect(sequenceName, fetchSize);
List<Range<Long>> excludeRanges =
parseExcludedRanges(sequenceName.getObjectName().getText(), params);
this.databaseStructure =
buildDatabaseStructure(
determineContributor(params),
type,
sequenceName,
initialValue,
excludeRanges,
jdbcEnvironment);
}