Details
-
Enhancement
-
Resolution: Unresolved
-
Major
-
None
-
9.3.1.Final
-
None
Description
When we have two entities that share the same region but use different access strategies the Hibernate boot should fail. Right now there's an assertion in DomainDataRegionImpl.prepareFor* but this does not give much explanation and does not fail when assertions are disabled which leads to cryptic errors later on.
Example:
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE, region = "item") public static class NonStrictReadWriteVersionedCacheableItem { ... } @Cache(usage = CacheConcurrencyStrategy.READ_WRITE, region = "item") public static class ReadWriteVersionedCacheableItem { ... }