@@ -58,6 +58,8 @@ protected void handleUnnamedSequenceGenerator() {
58
58
final SequenceGenerator localizedMatch = findLocalizedMatch (
59
59
JpaAnnotations .SEQUENCE_GENERATOR ,
60
60
idMember ,
61
+ buildingContext .getMetadataCollector ().getClassDetailsRegistry ()
62
+ .getClassDetails ( entityMapping .getClassName () ),
61
63
null ,
62
64
null ,
63
65
buildingContext
@@ -77,6 +79,8 @@ protected void handleNamedSequenceGenerator() {
77
79
final SequenceGenerator localizedMatch = findLocalizedMatch (
78
80
JpaAnnotations .SEQUENCE_GENERATOR ,
79
81
idMember ,
82
+ buildingContext .getMetadataCollector ().getClassDetailsRegistry ()
83
+ .getClassDetails ( entityMapping .getClassName () ),
80
84
SequenceGenerator ::name ,
81
85
generator ,
82
86
buildingContext
@@ -147,6 +151,8 @@ protected void handleUnnamedTableGenerator() {
147
151
final TableGenerator localizedMatch = findLocalizedMatch (
148
152
JpaAnnotations .TABLE_GENERATOR ,
149
153
idMember ,
154
+ buildingContext .getMetadataCollector ().getClassDetailsRegistry ()
155
+ .getClassDetails ( entityMapping .getClassName () ),
150
156
null ,
151
157
null ,
152
158
buildingContext
@@ -161,6 +167,8 @@ protected void handleNamedTableGenerator() {
161
167
final TableGenerator localizedTableMatch = findLocalizedMatch (
162
168
JpaAnnotations .TABLE_GENERATOR ,
163
169
idMember ,
170
+ buildingContext .getMetadataCollector ().getClassDetailsRegistry ()
171
+ .getClassDetails ( entityMapping .getClassName () ),
164
172
TableGenerator ::name ,
165
173
generator ,
166
174
buildingContext
@@ -229,6 +237,8 @@ protected void handleUnnamedAutoGenerator() {
229
237
final SequenceGenerator localizedSequenceMatch = findLocalizedMatch (
230
238
JpaAnnotations .SEQUENCE_GENERATOR ,
231
239
idMember ,
240
+ buildingContext .getMetadataCollector ().getClassDetailsRegistry ()
241
+ .getClassDetails ( entityMapping .getClassName () ),
232
242
null ,
233
243
null ,
234
244
buildingContext
@@ -241,6 +251,8 @@ protected void handleUnnamedAutoGenerator() {
241
251
final TableGenerator localizedTableMatch = findLocalizedMatch (
242
252
JpaAnnotations .TABLE_GENERATOR ,
243
253
idMember ,
254
+ buildingContext .getMetadataCollector ().getClassDetailsRegistry ()
255
+ .getClassDetails ( entityMapping .getClassName () ),
244
256
null ,
245
257
null ,
246
258
buildingContext
@@ -253,6 +265,8 @@ protected void handleUnnamedAutoGenerator() {
253
265
final GenericGenerator localizedGenericMatch = findLocalizedMatch (
254
266
HibernateAnnotations .GENERIC_GENERATOR ,
255
267
idMember ,
268
+ buildingContext .getMetadataCollector ().getClassDetailsRegistry ()
269
+ .getClassDetails ( entityMapping .getClassName () ),
256
270
null ,
257
271
null ,
258
272
buildingContext
@@ -274,7 +288,13 @@ protected void handleUnnamedAutoGenerator() {
274
288
275
289
if ( idMember .getType ().isImplementor ( UUID .class )
276
290
|| idMember .getType ().isImplementor ( String .class ) ) {
277
- GeneratorAnnotationHelper .handleUuidStrategy ( idValue , idMember , buildingContext );
291
+ GeneratorAnnotationHelper .handleUuidStrategy (
292
+ idValue ,
293
+ idMember ,
294
+ buildingContext .getMetadataCollector ().getClassDetailsRegistry ()
295
+ .getClassDetails ( entityMapping .getClassName () ),
296
+ buildingContext
297
+ );
278
298
return ;
279
299
}
280
300
@@ -313,7 +333,13 @@ protected void handleNamedAutoGenerator() {
313
333
314
334
if ( idMember .getType ().isImplementor ( UUID .class )
315
335
|| idMember .getType ().isImplementor ( String .class ) ) {
316
- GeneratorAnnotationHelper .handleUuidStrategy ( idValue , idMember , buildingContext );
336
+ GeneratorAnnotationHelper .handleUuidStrategy (
337
+ idValue ,
338
+ idMember ,
339
+ buildingContext .getMetadataCollector ().getClassDetailsRegistry ()
340
+ .getClassDetails ( entityMapping .getClassName () ),
341
+ buildingContext
342
+ );
317
343
return ;
318
344
}
319
345
@@ -331,6 +357,8 @@ private boolean handleAsLocalAutoGenerator() {
331
357
final SequenceGenerator localizedSequenceMatch = findLocalizedMatch (
332
358
JpaAnnotations .SEQUENCE_GENERATOR ,
333
359
idMember ,
360
+ buildingContext .getMetadataCollector ().getClassDetailsRegistry ()
361
+ .getClassDetails ( entityMapping .getClassName () ),
334
362
SequenceGenerator ::name ,
335
363
generator ,
336
364
buildingContext
@@ -343,6 +371,8 @@ private boolean handleAsLocalAutoGenerator() {
343
371
final TableGenerator localizedTableMatch = findLocalizedMatch (
344
372
JpaAnnotations .TABLE_GENERATOR ,
345
373
idMember ,
374
+ buildingContext .getMetadataCollector ().getClassDetailsRegistry ()
375
+ .getClassDetails ( entityMapping .getClassName () ),
346
376
TableGenerator ::name ,
347
377
generator ,
348
378
buildingContext
@@ -355,6 +385,8 @@ private boolean handleAsLocalAutoGenerator() {
355
385
final GenericGenerator localizedGenericMatch = findLocalizedMatch (
356
386
HibernateAnnotations .GENERIC_GENERATOR ,
357
387
idMember ,
388
+ buildingContext .getMetadataCollector ().getClassDetailsRegistry ()
389
+ .getClassDetails ( entityMapping .getClassName () ),
358
390
GenericGenerator ::name ,
359
391
generator ,
360
392
buildingContext
0 commit comments