SGF-548 - Add the org.springframework.data.gemfire.mapping.annotation package.

This commit is contained in:
John Blum
2016-12-12 19:38:45 -08:00
parent aedfcdfb8e
commit c982d6ee74
43 changed files with 88 additions and 82 deletions

View File

@@ -45,7 +45,7 @@ import org.springframework.data.annotation.Id;
import org.springframework.data.gemfire.client.ClientCacheFactoryBean;
import org.springframework.data.gemfire.client.ClientRegionFactoryBean;
import org.springframework.data.gemfire.client.PoolFactoryBean;
import org.springframework.data.gemfire.mapping.Region;
import org.springframework.data.gemfire.mapping.annotation.Region;
import org.springframework.data.gemfire.process.ProcessExecutor;
import org.springframework.data.gemfire.process.ProcessWrapper;
import org.springframework.data.gemfire.server.CacheServerFactoryBean;

View File

@@ -43,7 +43,7 @@ import org.springframework.data.annotation.Id;
import org.springframework.data.gemfire.CacheFactoryBean;
import org.springframework.data.gemfire.LocalRegionFactoryBean;
import org.springframework.data.gemfire.mapping.GemfireMappingContext;
import org.springframework.data.gemfire.mapping.Region;
import org.springframework.data.gemfire.mapping.annotation.Region;
import org.springframework.data.gemfire.repository.support.GemfireRepositoryFactoryBean;
import org.springframework.data.gemfire.test.support.IdentifierSequence;
import org.springframework.data.repository.CrudRepository;

View File

@@ -58,10 +58,10 @@ import org.springframework.data.gemfire.config.annotation.test.entities.Collocat
import org.springframework.data.gemfire.config.annotation.test.entities.GenericRegionEntity;
import org.springframework.data.gemfire.config.annotation.test.entities.NonEntity;
import org.springframework.data.gemfire.config.xml.GemfireConstants;
import org.springframework.data.gemfire.mapping.ClientRegion;
import org.springframework.data.gemfire.mapping.LocalRegion;
import org.springframework.data.gemfire.mapping.PartitionRegion;
import org.springframework.data.gemfire.mapping.ReplicateRegion;
import org.springframework.data.gemfire.mapping.annotation.ClientRegion;
import org.springframework.data.gemfire.mapping.annotation.LocalRegion;
import org.springframework.data.gemfire.mapping.annotation.PartitionRegion;
import org.springframework.data.gemfire.mapping.annotation.ReplicateRegion;
import org.springframework.data.gemfire.util.CollectionUtils;
/**

View File

@@ -19,7 +19,7 @@ package org.springframework.data.gemfire.config.annotation.test.entities;
import org.apache.geode.cache.client.ClientRegionShortcut;
import org.springframework.data.annotation.Id;
import org.springframework.data.gemfire.mapping.ClientRegion;
import org.springframework.data.gemfire.mapping.annotation.ClientRegion;
/**
* {@link ClientRegionEntity} persistent entity stored in the "Users" {@link org.apache.geode.cache.DataPolicy#NORMAL},

View File

@@ -17,7 +17,7 @@
package org.springframework.data.gemfire.config.annotation.test.entities;
import org.springframework.data.gemfire.mapping.PartitionRegion;
import org.springframework.data.gemfire.mapping.annotation.PartitionRegion;
/**
* {@link CollocatedPartitionRegionEntity} persistent entity stored in the "ContactEvents"

View File

@@ -18,7 +18,7 @@
package org.springframework.data.gemfire.config.annotation.test.entities;
import org.springframework.data.annotation.Id;
import org.springframework.data.gemfire.mapping.Region;
import org.springframework.data.gemfire.mapping.annotation.Region;
/**
* {@link GenericRegionEntity} persistent entity stored in the "GenericRegionEntity"

View File

@@ -18,7 +18,7 @@
package org.springframework.data.gemfire.config.annotation.test.entities;
import org.springframework.data.annotation.Id;
import org.springframework.data.gemfire.mapping.LocalRegion;
import org.springframework.data.gemfire.mapping.annotation.LocalRegion;
/**
* {@link LocalRegionEntity} persistent entity stored in the "LocalRegionEntity" {@link org.apache.geode.cache.DataPolicy#NORMAL},

View File

@@ -19,8 +19,8 @@ package org.springframework.data.gemfire.config.annotation.test.entities;
import org.springframework.data.annotation.Id;
import org.springframework.data.gemfire.IndexType;
import org.springframework.data.gemfire.mapping.Indexed;
import org.springframework.data.gemfire.mapping.PartitionRegion;
import org.springframework.data.gemfire.mapping.annotation.Indexed;
import org.springframework.data.gemfire.mapping.annotation.PartitionRegion;
/**
* {@link PartitionRegionEntity} persistent entity stored in the "Customers"

View File

@@ -18,7 +18,7 @@
package org.springframework.data.gemfire.config.annotation.test.entities;
import org.springframework.data.gemfire.ScopeType;
import org.springframework.data.gemfire.mapping.ReplicateRegion;
import org.springframework.data.gemfire.mapping.annotation.ReplicateRegion;
/**
* {@link ReplicateRegionEntity} persistent entity stored in the "Accounts"

View File

@@ -28,6 +28,7 @@ import java.math.BigInteger;
import org.junit.Test;
import org.springframework.data.gemfire.TestUtils;
import org.springframework.data.gemfire.mapping.annotation.Region;
import org.springframework.data.gemfire.mapping.model.GemfireSimpleTypeHolder;
import org.springframework.data.mapping.PersistentEntity;

View File

@@ -24,12 +24,13 @@ import java.math.BigDecimal;
import java.math.BigInteger;
import org.junit.Test;
import org.springframework.data.gemfire.mapping.annotation.Region;
import org.springframework.data.mapping.context.MappingContext;
import org.springframework.data.util.ClassTypeInformation;
/**
* Unit tests for {@link GemfirePersistentEntity}.
*
*
* @author Oliver Gierke
* @author John Blum
*/

View File

@@ -17,7 +17,7 @@
package org.springframework.data.gemfire.repository.cdi;
import org.springframework.data.gemfire.mapping.Region;
import org.springframework.data.gemfire.mapping.annotation.Region;
import org.springframework.data.gemfire.repository.GemfireRepository;
import org.springframework.data.gemfire.repository.sample.Person;

View File

@@ -42,7 +42,7 @@ import org.springframework.beans.factory.xml.XmlBeanDefinitionReader;
import org.springframework.beans.factory.xml.XmlReaderContext;
import org.springframework.core.env.Environment;
import org.springframework.core.io.ResourceLoader;
import org.springframework.data.gemfire.mapping.Region;
import org.springframework.data.gemfire.mapping.annotation.Region;
import org.springframework.data.gemfire.repository.GemfireRepository;
import org.springframework.data.gemfire.repository.support.GemfireRepositoryFactoryBean;
import org.springframework.data.repository.config.AnnotationRepositoryConfigurationSource;

View File

@@ -17,15 +17,15 @@
package org.springframework.data.gemfire.repository.sample;
import org.springframework.data.annotation.Id;
import org.springframework.data.gemfire.mapping.Region;
import org.springframework.data.gemfire.mapping.ReplicateRegion;
import org.springframework.data.gemfire.mapping.annotation.Region;
import org.springframework.data.gemfire.mapping.annotation.ReplicateRegion;
import org.springframework.util.Assert;
/**
* The Account class is an abstract data type (ADT) for modeling customer accounts.
*
* @author John Blum
* @see org.springframework.data.gemfire.mapping.Region
* @see Region
* @since 1.0.0
*/
@ReplicateRegion("Accounts")

View File

@@ -16,10 +16,10 @@
package org.springframework.data.gemfire.repository.sample;
import org.springframework.data.annotation.Id;
import org.springframework.data.gemfire.mapping.Region;
import org.springframework.data.gemfire.mapping.annotation.Region;
/**
*
*
* @author Oliver Gierke
*/
@Region("address")

View File

@@ -17,14 +17,14 @@
package org.springframework.data.gemfire.repository.sample;
import org.springframework.data.annotation.Id;
import org.springframework.data.gemfire.mapping.Region;
import org.springframework.data.gemfire.mapping.annotation.Region;
/**
* The Algorithm interface define abstract data type modeling a computer algorithm.
*
* @author John Blum
* @see org.springframework.data.annotation.Id
* @see org.springframework.data.gemfire.mapping.Region
* @see Region
* @since 1.4.0
*/
@Region("Algorithms")

View File

@@ -16,7 +16,7 @@
package org.springframework.data.gemfire.repository.sample;
import org.springframework.data.gemfire.mapping.Region;
import org.springframework.data.gemfire.mapping.annotation.Region;
import org.springframework.data.gemfire.repository.GemfireRepository;
import org.springframework.data.gemfire.repository.Query;

View File

@@ -17,8 +17,8 @@
package org.springframework.data.gemfire.repository.sample;
import org.springframework.data.annotation.Id;
import org.springframework.data.gemfire.mapping.Region;
import org.springframework.data.gemfire.mapping.ReplicateRegion;
import org.springframework.data.gemfire.mapping.annotation.Region;
import org.springframework.data.gemfire.mapping.annotation.ReplicateRegion;
import org.springframework.util.ObjectUtils;
/**
@@ -26,7 +26,7 @@ import org.springframework.util.ObjectUtils;
*
* @author John Blum
* @see org.springframework.data.annotation.Id
* @see org.springframework.data.gemfire.mapping.Region
* @see Region
* @since 1.0.0
*/
@ReplicateRegion("Customers")

View File

@@ -16,7 +16,7 @@
package org.springframework.data.gemfire.repository.sample;
import org.springframework.data.gemfire.mapping.Region;
import org.springframework.data.gemfire.mapping.annotation.Region;
import org.springframework.data.gemfire.repository.GemfireRepository;
import org.springframework.data.gemfire.repository.Query;

View File

@@ -16,13 +16,13 @@
package org.springframework.data.gemfire.repository.sample;
import org.springframework.data.gemfire.mapping.Region;
import org.springframework.data.gemfire.mapping.annotation.Region;
/**
* The GuestUser class represents an authorized restricted user of a service or computer system, etc.
*
* @author John Blum
* @see org.springframework.data.gemfire.mapping.Region
* @see Region
* @see org.springframework.data.gemfire.repository.sample.User
* @since 1.4.0
*/

View File

@@ -21,7 +21,7 @@ import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import org.springframework.data.annotation.Id;
import org.springframework.data.annotation.PersistenceConstructor;
import org.springframework.data.gemfire.mapping.Region;
import org.springframework.data.gemfire.mapping.annotation.Region;
import org.springframework.util.ObjectUtils;
/**

View File

@@ -17,7 +17,7 @@
package org.springframework.data.gemfire.repository.sample;
import org.springframework.data.annotation.Id;
import org.springframework.data.gemfire.mapping.Region;
import org.springframework.data.gemfire.mapping.annotation.Region;
import org.springframework.util.ObjectUtils;
/**
@@ -25,7 +25,7 @@ import org.springframework.util.ObjectUtils;
*
* @author John Blum
* @see org.springframework.data.annotation.Id
* @see org.springframework.data.gemfire.mapping.Region
* @see Region
* @since 1.4.0
*/
@Region("Plants")

View File

@@ -16,14 +16,14 @@
package org.springframework.data.gemfire.repository.sample;
import org.springframework.data.gemfire.mapping.Region;
import org.springframework.data.gemfire.mapping.annotation.Region;
import org.springframework.util.StringUtils;
/**
* The Programmer class is a User representing/modeling a software engineer/developer.
*
* @author John J. Blum
* @see org.springframework.data.gemfire.mapping.Region
* @see Region
* @see org.springframework.data.gemfire.repository.sample.User
* @since 1.4.0
*/

View File

@@ -16,7 +16,7 @@
package org.springframework.data.gemfire.repository.sample;
import org.springframework.data.gemfire.mapping.Region;
import org.springframework.data.gemfire.mapping.annotation.Region;
import org.springframework.data.gemfire.repository.GemfireRepository;
import org.springframework.data.gemfire.repository.Query;
@@ -25,7 +25,7 @@ import org.springframework.data.gemfire.repository.Query;
* from/to an underlying data store (GemFire).
*
* @author John Blum
* @see org.springframework.data.gemfire.mapping.Region
* @see Region
* @see org.springframework.data.gemfire.repository.GemfireRepository
* @see org.springframework.data.gemfire.repository.Query
* @since 1.4.0

View File

@@ -16,13 +16,13 @@
package org.springframework.data.gemfire.repository.sample;
import org.springframework.data.gemfire.mapping.Region;
import org.springframework.data.gemfire.mapping.annotation.Region;
/**
* The RootUser class represents an authorized administrative user of a service or computer system, etc.
*
* @author John Blum
* @see org.springframework.data.gemfire.mapping.Region
* @see Region
* @see org.springframework.data.gemfire.repository.sample.User
* @since 1.4.0
*/

View File

@@ -19,7 +19,7 @@ package org.springframework.data.gemfire.repository.sample;
import java.util.Calendar;
import org.springframework.data.annotation.Id;
import org.springframework.data.gemfire.mapping.Region;
import org.springframework.data.gemfire.mapping.annotation.Region;
import org.springframework.util.Assert;
import org.springframework.util.ObjectUtils;
@@ -29,7 +29,7 @@ import org.springframework.util.ObjectUtils;
* @author John Blum
* @see java.lang.Comparable
* @see org.springframework.data.annotation.Id
* @see org.springframework.data.gemfire.mapping.Region
* @see Region
* @since 1.4.0
*/
@Region("Users")

View File

@@ -314,7 +314,7 @@ public class GemfireRepositoryFactoryUnitTests {
interface SampleCustomGemfireRepository extends GemfireRepository<Person, Long>, SampleCustomRepository<Person> {
}
@org.springframework.data.gemfire.mapping.Region("People")
@org.springframework.data.gemfire.mapping.annotation.Region("People")
interface PersonRepository extends GemfireRepository<Person, Long> {
}
}

View File

@@ -24,7 +24,7 @@ import java.util.Date;
import org.springframework.data.annotation.Id;
import org.springframework.data.annotation.PersistenceConstructor;
import org.springframework.data.gemfire.mapping.Region;
import org.springframework.data.gemfire.mapping.annotation.Region;
import org.springframework.data.gemfire.test.support.IdentifierSequence;
import org.springframework.data.gemfire.util.SpringUtils;
import org.springframework.util.Assert;