@@ -58,6 +58,8 @@ protected void handleUnnamedSequenceGenerator() {
5858 final SequenceGenerator localizedMatch = findLocalizedMatch (
5959 JpaAnnotations .SEQUENCE_GENERATOR ,
6060 idMember ,
61+ buildingContext .getMetadataCollector ().getClassDetailsRegistry ()
62+ .getClassDetails ( entityMapping .getClassName () ),
6163 null ,
6264 null ,
6365 buildingContext
@@ -77,6 +79,8 @@ protected void handleNamedSequenceGenerator() {
7779 final SequenceGenerator localizedMatch = findLocalizedMatch (
7880 JpaAnnotations .SEQUENCE_GENERATOR ,
7981 idMember ,
82+ buildingContext .getMetadataCollector ().getClassDetailsRegistry ()
83+ .getClassDetails ( entityMapping .getClassName () ),
8084 SequenceGenerator ::name ,
8185 generator ,
8286 buildingContext
@@ -147,6 +151,8 @@ protected void handleUnnamedTableGenerator() {
147151 final TableGenerator localizedMatch = findLocalizedMatch (
148152 JpaAnnotations .TABLE_GENERATOR ,
149153 idMember ,
154+ buildingContext .getMetadataCollector ().getClassDetailsRegistry ()
155+ .getClassDetails ( entityMapping .getClassName () ),
150156 null ,
151157 null ,
152158 buildingContext
@@ -161,6 +167,8 @@ protected void handleNamedTableGenerator() {
161167 final TableGenerator localizedTableMatch = findLocalizedMatch (
162168 JpaAnnotations .TABLE_GENERATOR ,
163169 idMember ,
170+ buildingContext .getMetadataCollector ().getClassDetailsRegistry ()
171+ .getClassDetails ( entityMapping .getClassName () ),
164172 TableGenerator ::name ,
165173 generator ,
166174 buildingContext
@@ -229,6 +237,8 @@ protected void handleUnnamedAutoGenerator() {
229237 final SequenceGenerator localizedSequenceMatch = findLocalizedMatch (
230238 JpaAnnotations .SEQUENCE_GENERATOR ,
231239 idMember ,
240+ buildingContext .getMetadataCollector ().getClassDetailsRegistry ()
241+ .getClassDetails ( entityMapping .getClassName () ),
232242 null ,
233243 null ,
234244 buildingContext
@@ -241,6 +251,8 @@ protected void handleUnnamedAutoGenerator() {
241251 final TableGenerator localizedTableMatch = findLocalizedMatch (
242252 JpaAnnotations .TABLE_GENERATOR ,
243253 idMember ,
254+ buildingContext .getMetadataCollector ().getClassDetailsRegistry ()
255+ .getClassDetails ( entityMapping .getClassName () ),
244256 null ,
245257 null ,
246258 buildingContext
@@ -253,6 +265,8 @@ protected void handleUnnamedAutoGenerator() {
253265 final GenericGenerator localizedGenericMatch = findLocalizedMatch (
254266 HibernateAnnotations .GENERIC_GENERATOR ,
255267 idMember ,
268+ buildingContext .getMetadataCollector ().getClassDetailsRegistry ()
269+ .getClassDetails ( entityMapping .getClassName () ),
256270 null ,
257271 null ,
258272 buildingContext
@@ -274,7 +288,13 @@ protected void handleUnnamedAutoGenerator() {
274288
275289 if ( idMember .getType ().isImplementor ( UUID .class )
276290 || 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+ );
278298 return ;
279299 }
280300
@@ -313,7 +333,13 @@ protected void handleNamedAutoGenerator() {
313333
314334 if ( idMember .getType ().isImplementor ( UUID .class )
315335 || 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+ );
317343 return ;
318344 }
319345
@@ -331,6 +357,8 @@ private boolean handleAsLocalAutoGenerator() {
331357 final SequenceGenerator localizedSequenceMatch = findLocalizedMatch (
332358 JpaAnnotations .SEQUENCE_GENERATOR ,
333359 idMember ,
360+ buildingContext .getMetadataCollector ().getClassDetailsRegistry ()
361+ .getClassDetails ( entityMapping .getClassName () ),
334362 SequenceGenerator ::name ,
335363 generator ,
336364 buildingContext
@@ -343,6 +371,8 @@ private boolean handleAsLocalAutoGenerator() {
343371 final TableGenerator localizedTableMatch = findLocalizedMatch (
344372 JpaAnnotations .TABLE_GENERATOR ,
345373 idMember ,
374+ buildingContext .getMetadataCollector ().getClassDetailsRegistry ()
375+ .getClassDetails ( entityMapping .getClassName () ),
346376 TableGenerator ::name ,
347377 generator ,
348378 buildingContext
@@ -355,6 +385,8 @@ private boolean handleAsLocalAutoGenerator() {
355385 final GenericGenerator localizedGenericMatch = findLocalizedMatch (
356386 HibernateAnnotations .GENERIC_GENERATOR ,
357387 idMember ,
388+ buildingContext .getMetadataCollector ().getClassDetailsRegistry ()
389+ .getClassDetails ( entityMapping .getClassName () ),
358390 GenericGenerator ::name ,
359391 generator ,
360392 buildingContext
0 commit comments