Yes it does invoke it.
Generally I see those values:
Code:
hibernateProperties = {Properties@7243} size = 8
0 = {Hashtable$Entry@7274} "hibernate.id.new_generator_mappings" -> "false"
1 = {Hashtable$Entry@7275} "hibernate.dialect" -> "org.hibernate.dialect.Oracle10gDialectt"
2 = {Hashtable$Entry@7276} "hibernate.show_sql" -> "false"
3 = {Hashtable$Entry@7277} "hibernate.cache.use_second_level_cache" -> "false"
4 = {Hashtable$Entry@7278} "hibernate.bytecode.use_reflection_optimizer" -> "false"
5 = {Hashtable$Entry@7279} "hibernate.cache.use_query_cache" -> "false"
6 = {Hashtable$Entry@7280} "hibernate.hbm2ddl.auto" ->
7 = {Hashtable$Entry@7281} "hibernate.jdbc.fetch_size" -> "11"
and
Code:
idGenerationTypeInterpreter = {IdGeneratorInterpreterImpl@8651}
fallbackInterpreter = {IdGeneratorInterpreterImpl$LegacyFallbackInterpreter@8653}
No fields to display
delegates = null
I am also checking SimpleValue.public IdentifierGenerator createIdentifierGenerator(
Code:
identifierGeneratorProperties = {Properties@9609} size = 2
0 = {Hashtable$Entry@9614} "identifier_normalizer" ->
1 = {Hashtable$Entry@9615} "sequence" -> "MY_SEQ"
identifierGeneratorStrategy = "sequence"
identifierGenerator = null
identifierGeneratorFactory = {DefaultIdentifierGeneratorFactory@9541}
identifierGenerator = identifierGeneratorFactory.createIdentifierGenerator( identifierGeneratorStrategy, getType(), params );
and then in
Code:
DefaultIdentifierGeneratorFactory
I have other config, maybe here something is missing.. ?
Code:
strategy = "sequence"
type = {LongType@9670}
config = {Properties@9547} size = 8
0 = {Hashtable$Entry@9675} "identifier_normalizer" ->
1 = {Hashtable$Entry@9676} "entity_name" -> "........"
2 = {Hashtable$Entry@9677} "target_table" -> "............"
3 = {Hashtable$Entry@9678} "jpa_entity_name" -> ".........."
4 = {Hashtable$Entry@9679} "identity_tables" -> ".........."
5 = {Hashtable$Entry@9680} "hibernate.id.optimizer.pooled.prefer_lo" -> "false"
6 = {Hashtable$Entry@9681} "sequence" -> "MY_SEQ"
7 = {Hashtable$Entry@9682} "target_column" -> "ID"
clazz = {Class@9671} "class org.hibernate.id.enhanced.SequenceStyleGenerator"
serviceRegistry = {StandardServiceRegistryImpl@8648}
Code:
public Class getIdentifierGeneratorClass(String strategy) (strategy=sequence)
Code:
generatorStrategyToClassNameMap = {ConcurrentHashMap@9705} size = 14
0 = {ConcurrentHashMap$MapEntry@9708} "select" -> "class org.hibernate.id.SelectGenerator"
1 = {ConcurrentHashMap$MapEntry@9709} "increment" -> "class org.hibernate.id.IncrementGenerator"
2 = {ConcurrentHashMap$MapEntry@9710} "seqhilo" -> "class org.hibernate.id.SequenceHiLoGenerator"
3 = {ConcurrentHashMap$MapEntry@9711} "uuid" -> "class org.hibernate.id.UUIDHexGenerator"
4 = {ConcurrentHashMap$MapEntry@9712} "uuid.hex" -> "class org.hibernate.id.UUIDHexGenerator"
5 = {ConcurrentHashMap$MapEntry@9713} "foreign" -> "class org.hibernate.id.ForeignGenerator"
6 = {ConcurrentHashMap$MapEntry@9714} "uuid2" -> "class org.hibernate.id.UUIDGenerator"
7 = {ConcurrentHashMap$MapEntry@9715} "sequence" -> "class org.hibernate.id.enhanced.SequenceStyleGenerator"
8 = {ConcurrentHashMap$MapEntry@9716} "enhanced-table" -> "class org.hibernate.id.enhanced.TableGenerator"
9 = {ConcurrentHashMap$MapEntry@9717} "identity" -> "class org.hibernate.id.IdentityGenerator"
10 = {ConcurrentHashMap$MapEntry@9718} "enhanced-sequence" -> "class org.hibernate.id.enhanced.SequenceStyleGenerator"
11 = {ConcurrentHashMap$MapEntry@9719} "guid" -> "class org.hibernate.id.GUIDGenerator"
12 = {ConcurrentHashMap$MapEntry@9720} "sequence-identity" -> "class org.hibernate.id.SequenceIdentityGenerator"
13 = {ConcurrentHashMap$MapEntry@9721} "assigned" -> "class org.hibernate.id.Assigned"
Code:
if ( identifierGenerator instanceof Configurable ) {
( ( Configurable ) identifierGenerator ).configure( type, config, serviceRegistry );
}