mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 16:44:57 +00:00
HHH-7327 : Caching access type should be determined using AccessType.fromExternalName(cacheElement.getUsage())
This commit is contained in:
parent
aed88afe63
commit
a82751cceb
@ -135,7 +135,7 @@ public Caching initialize() {
|
||||
return null;
|
||||
}
|
||||
final String region = cacheElement.getRegion() != null ? cacheElement.getRegion() : defaultRegionName;
|
||||
final AccessType accessType = Enum.valueOf( AccessType.class, cacheElement.getUsage() );
|
||||
final AccessType accessType = AccessType.fromExternalName( cacheElement.getUsage() );
|
||||
final boolean cacheLazyProps = !"non-lazy".equals( cacheElement.getInclude() );
|
||||
return new Caching( region, accessType, cacheLazyProps );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user