diff --git a/hibernate-infinispan/src/main/java/org/hibernate/cache/infinispan/InfinispanRegionFactory.java b/hibernate-infinispan/src/main/java/org/hibernate/cache/infinispan/InfinispanRegionFactory.java index 7278758bd7..fd875ef2ef 100644 --- a/hibernate-infinispan/src/main/java/org/hibernate/cache/infinispan/InfinispanRegionFactory.java +++ b/hibernate-infinispan/src/main/java/org/hibernate/cache/infinispan/InfinispanRegionFactory.java @@ -622,7 +622,7 @@ public class InfinispanRegionFactory implements RegionFactory { } else if ( (suffixLoc = key.indexOf( MAX_ENTRIES_SUFFIX )) != -1 ) { builder = getOrCreateConfig( prefixLoc, key, suffixLoc ); - builder.eviction().maxEntries( Long.parseLong(value) ); + builder.eviction().size( Long.parseLong(value) ); } else if ( (suffixLoc = key.indexOf( LIFESPAN_SUFFIX )) != -1 ) { builder = getOrCreateConfig( prefixLoc, key, suffixLoc ); diff --git a/hibernate-infinispan/src/main/resources/org/hibernate/cache/infinispan/builder/infinispan-configs-local.xml b/hibernate-infinispan/src/main/resources/org/hibernate/cache/infinispan/builder/infinispan-configs-local.xml index 6d0f19d9d4..f1124475c0 100644 --- a/hibernate-infinispan/src/main/resources/org/hibernate/cache/infinispan/builder/infinispan-configs-local.xml +++ b/hibernate-infinispan/src/main/resources/org/hibernate/cache/infinispan/builder/infinispan-configs-local.xml @@ -6,8 +6,8 @@ ~ See the lgpl.txt file in the root directory or . --> + xmlns="urn:infinispan:config:8.2" + xsi:schemaLocation="urn:infinispan:config:8.2 http://www.infinispan.org/schemas/infinispan-config-8.2.xsd"> @@ -18,14 +18,14 @@ - + - + diff --git a/hibernate-infinispan/src/main/resources/org/hibernate/cache/infinispan/builder/infinispan-configs.xml b/hibernate-infinispan/src/main/resources/org/hibernate/cache/infinispan/builder/infinispan-configs.xml index 5bb6da5ac2..d6d1699556 100644 --- a/hibernate-infinispan/src/main/resources/org/hibernate/cache/infinispan/builder/infinispan-configs.xml +++ b/hibernate-infinispan/src/main/resources/org/hibernate/cache/infinispan/builder/infinispan-configs.xml @@ -6,8 +6,8 @@ ~ See the lgpl.txt file in the root directory or . --> + xmlns="urn:infinispan:config:8.2" + xsi:schemaLocation="urn:infinispan:config:8.2 http://www.infinispan.org/schemas/infinispan-config-8.2.xsd"> @@ -23,7 +23,7 @@ - + @@ -31,7 +31,7 @@ - + @@ -39,7 +39,7 @@ - + diff --git a/hibernate-infinispan/src/test/resources/alternative-infinispan-configs.xml b/hibernate-infinispan/src/test/resources/alternative-infinispan-configs.xml index 50f1905a40..21ad8ec2e6 100644 --- a/hibernate-infinispan/src/test/resources/alternative-infinispan-configs.xml +++ b/hibernate-infinispan/src/test/resources/alternative-infinispan-configs.xml @@ -6,8 +6,8 @@ ~ See the lgpl.txt file in the root directory or . --> + xmlns="urn:infinispan:config:8.2" + xsi:schemaLocation="urn:infinispan:config:8.2 http://www.infinispan.org/schemas/infinispan-config-8.2.xsd"> @@ -22,7 +22,7 @@ - + @@ -30,7 +30,7 @@ - + @@ -38,7 +38,7 @@ - + @@ -46,7 +46,7 @@ - +