42
42
import org .hibernate .mapping .Table ;
43
43
import org .hibernate .models .spi .ClassDetails ;
44
44
import org .hibernate .models .spi .MemberDetails ;
45
- import org .hibernate .models .spi .SourceModelBuildingContext ;
45
+ import org .hibernate .models .spi .ModelsContext ;
46
46
import org .hibernate .models .spi .TypeDetails ;
47
47
import org .hibernate .resource .beans .internal .FallbackBeanInstanceProducer ;
48
48
import org .hibernate .resource .beans .spi .ManagedBeanRegistry ;
@@ -151,7 +151,7 @@ public BasicValueBinder(Kind kind, Component aggregateComponent, MetadataBuildin
151
151
this .buildingContext = buildingContext ;
152
152
}
153
153
154
- protected SourceModelBuildingContext getSourceModelContext () {
154
+ protected ModelsContext getSourceModelContext () {
155
155
return buildingContext .getBootstrapContext ().getModelsContext ();
156
156
}
157
157
@@ -1370,21 +1370,21 @@ private Map<String, Object> createDynamicParameterizedTypeParameters() {
1370
1370
* Access to detail of basic value mappings based on {@link Kind}
1371
1371
*/
1372
1372
private interface BasicMappingAccess {
1373
- Class <? extends UserType <?>> customType (MemberDetails attribute , SourceModelBuildingContext context );
1374
- Map <String ,String > customTypeParameters (MemberDetails attribute , SourceModelBuildingContext context );
1373
+ Class <? extends UserType <?>> customType (MemberDetails attribute , ModelsContext context );
1374
+ Map <String ,String > customTypeParameters (MemberDetails attribute , ModelsContext context );
1375
1375
}
1376
1376
1377
1377
private static class ValueMappingAccess implements BasicMappingAccess {
1378
1378
private static final ValueMappingAccess INSTANCE = new ValueMappingAccess ();
1379
1379
1380
1380
@ Override
1381
- public Class <? extends UserType <?>> customType (MemberDetails attribute , SourceModelBuildingContext context ) {
1381
+ public Class <? extends UserType <?>> customType (MemberDetails attribute , ModelsContext context ) {
1382
1382
final Type customType = attribute .locateAnnotationUsage ( Type .class , context );
1383
1383
return customType == null ? null : customType .value ();
1384
1384
}
1385
1385
1386
1386
@ Override
1387
- public Map <String ,String > customTypeParameters (MemberDetails attribute , SourceModelBuildingContext context ) {
1387
+ public Map <String ,String > customTypeParameters (MemberDetails attribute , ModelsContext context ) {
1388
1388
final Type customType = attribute .locateAnnotationUsage ( Type .class , context );
1389
1389
return customType == null ? null : extractParameterMap ( customType .parameters () );
1390
1390
}
@@ -1394,12 +1394,12 @@ private static class AnyDiscriminatorMappingAccess implements BasicMappingAccess
1394
1394
private static final AnyDiscriminatorMappingAccess INSTANCE = new AnyDiscriminatorMappingAccess ();
1395
1395
1396
1396
@ Override
1397
- public Class <? extends UserType <?>> customType (MemberDetails attribute , SourceModelBuildingContext context ) {
1397
+ public Class <? extends UserType <?>> customType (MemberDetails attribute , ModelsContext context ) {
1398
1398
return null ;
1399
1399
}
1400
1400
1401
1401
@ Override
1402
- public Map <String ,String > customTypeParameters (MemberDetails attribute , SourceModelBuildingContext context ) {
1402
+ public Map <String ,String > customTypeParameters (MemberDetails attribute , ModelsContext context ) {
1403
1403
return emptyMap ();
1404
1404
}
1405
1405
}
@@ -1408,12 +1408,12 @@ private static class AnyKeyMappingAccess implements BasicMappingAccess {
1408
1408
private static final AnyKeyMappingAccess INSTANCE = new AnyKeyMappingAccess ();
1409
1409
1410
1410
@ Override
1411
- public Class <? extends UserType <?>> customType (MemberDetails attribute , SourceModelBuildingContext context ) {
1411
+ public Class <? extends UserType <?>> customType (MemberDetails attribute , ModelsContext context ) {
1412
1412
return null ;
1413
1413
}
1414
1414
1415
1415
@ Override
1416
- public Map <String ,String > customTypeParameters (MemberDetails attribute , SourceModelBuildingContext context ) {
1416
+ public Map <String ,String > customTypeParameters (MemberDetails attribute , ModelsContext context ) {
1417
1417
return emptyMap ();
1418
1418
}
1419
1419
}
@@ -1422,14 +1422,14 @@ private static class MapKeyMappingAccess implements BasicMappingAccess {
1422
1422
private static final MapKeyMappingAccess INSTANCE = new MapKeyMappingAccess ();
1423
1423
1424
1424
@ Override
1425
- public Class <? extends UserType <?>> customType (MemberDetails attribute , SourceModelBuildingContext context ) {
1425
+ public Class <? extends UserType <?>> customType (MemberDetails attribute , ModelsContext context ) {
1426
1426
final MapKeyType customType = attribute .locateAnnotationUsage ( MapKeyType .class , context );
1427
1427
return customType == null ? null : customType .value ();
1428
1428
1429
1429
}
1430
1430
1431
1431
@ Override
1432
- public Map <String ,String > customTypeParameters (MemberDetails attribute , SourceModelBuildingContext context ) {
1432
+ public Map <String ,String > customTypeParameters (MemberDetails attribute , ModelsContext context ) {
1433
1433
final MapKeyType customType = attribute .locateAnnotationUsage ( MapKeyType .class , context );
1434
1434
return customType == null ? null : extractParameterMap ( customType .parameters () );
1435
1435
@@ -1440,14 +1440,14 @@ private static class CollectionIdMappingAccess implements BasicMappingAccess {
1440
1440
private static final CollectionIdMappingAccess INSTANCE = new CollectionIdMappingAccess ();
1441
1441
1442
1442
@ Override
1443
- public Class <? extends UserType <?>> customType (MemberDetails attribute , SourceModelBuildingContext context ) {
1443
+ public Class <? extends UserType <?>> customType (MemberDetails attribute , ModelsContext context ) {
1444
1444
final CollectionIdType customType = attribute .locateAnnotationUsage ( CollectionIdType .class , context );
1445
1445
return customType == null ? null : customType .value ();
1446
1446
1447
1447
}
1448
1448
1449
1449
@ Override
1450
- public Map <String ,String > customTypeParameters (MemberDetails attribute , SourceModelBuildingContext context ) {
1450
+ public Map <String ,String > customTypeParameters (MemberDetails attribute , ModelsContext context ) {
1451
1451
final CollectionIdType customType = attribute .locateAnnotationUsage ( CollectionIdType .class , context );
1452
1452
return customType == null ? null : extractParameterMap ( customType .parameters () );
1453
1453
@@ -1458,12 +1458,12 @@ private static class ListIndexMappingAccess implements BasicMappingAccess {
1458
1458
private static final ListIndexMappingAccess INSTANCE = new ListIndexMappingAccess ();
1459
1459
1460
1460
@ Override
1461
- public Class <? extends UserType <?>> customType (MemberDetails attribute , SourceModelBuildingContext context ) {
1461
+ public Class <? extends UserType <?>> customType (MemberDetails attribute , ModelsContext context ) {
1462
1462
return null ;
1463
1463
}
1464
1464
1465
1465
@ Override
1466
- public Map <String ,String > customTypeParameters (MemberDetails attribute , SourceModelBuildingContext context ) {
1466
+ public Map <String ,String > customTypeParameters (MemberDetails attribute , ModelsContext context ) {
1467
1467
return emptyMap ();
1468
1468
}
1469
1469
}
0 commit comments