Fixes JIRA issues SGF-251 involving Spring Data GemFire Repositories not functionality properly for application domain objects (entities) stored in GemFire Subregions using the @Region annotation association.

This commit is contained in:
John Blum
2014-02-04 18:36:42 -08:00
parent e06d1e473b
commit 5660a78255
8 changed files with 320 additions and 14 deletions

View File

@@ -34,7 +34,8 @@ import com.gemstone.gemfire.cache.Region;
*/
class QueryString {
private static final String REGION_PATTERN = "(?<=\\/)\\w+";
//private static final String REGION_PATTERN = "(?<=\\/)\\w+";
private static final String REGION_PATTERN = "\\/\\w+";
private static final String IN_PARAMETER_PATTERN = "(?<=IN (SET|LIST) \\$)\\d";
private static final String IN_PATTERN = "(?<=IN (SET|LIST) )\\$\\d";
@@ -79,7 +80,7 @@ class QueryString {
* @return
*/
public QueryString forRegion(Class<?> domainClass, Region<?, ?> region) {
return new QueryString(query.replaceAll(REGION_PATTERN, region.getName()));
return new QueryString(query.replaceAll(REGION_PATTERN, region.getFullPath()));
}
/**