Commit Graph

424 Commits

Author SHA1 Message Date
John Blum
d400c78fb6 Completes JIRA ticket SGF-260 adding support for @Id annotated domain entity interface and class methods in addition to domain entity class fields. This change replaces the DefaultGemfireEntityInformation class's PersistentEntityBasedEntityInformation implementation of the EntityInformation interface to use the new Spring Data Commons org.springframework.data.repository.core.support.PersistentEntityInformation class. Now, DefaultGemfireEntityInformation extends PersistentEntityInformation directly and uses the GemfirePersistentEntity mapping meta-data to retrieve information about the domain entity's id. 2014-03-27 12:44:25 -07:00
John Blum
7f5eb6edb6 Additional changes for SGF-260 supporting @Id annotations on domain entity class or interface methods in addition to domain entity class fields. This change replaces the use of the org.springframework.data.repository.core.support.ReflectionEntityInformation in the DefaultGemfireEntityInformation class with an internal implementation of SDC EntityInformation interface based on the GemfirePersistentEntity instance passed to the DefaultGemfireEntityInformation class during construction. 2014-03-26 17:04:03 -07:00
John Blum
c027e73131 Completes testing for SGF-260, which enables the Spring Data Commons @Id mapping annotation to be used on methods of domain interfaces or classes in addition to domain entity class fields. These test additions require DATACMNS-476 (https://jira.spring.io/browse/DATACMNS-476), with details in GitHub PR #76 (https://github.com/spring-projects/spring-data-commons/pull/76) to be included in the recent SDC 1.8.0.BUILD-SNAPSHOT, slated for the Spring Data Dijkstra release as M1. 2014-03-26 17:04:03 -07:00
John Blum
321728d7d5 Added appropriate synchronization around application event notification using the Spring ApplicationContext and ApplicationEventMulticaster. In addition, added support for late ContextRefreshedEvent notifications in the case where ApplicationListeners are registered after the ConfigurableApplicationContext has already been constructed, configured, initialized and refreshed. This latest feature is meant to support updates planned in the 7.5 GemFire release to the Gfsh 'deploy' command dynamically deploying and initializing Declarables in the JAR file. It is possible that Declarables are created and initialized in an unspecified order given there is not equivalent to Spring's Ordered interface in GemFire. 2014-03-25 11:04:31 -07:00
John Blum
f6ccc09c23 Added support to the SpringContextBootstrappingInitializer class for component scanning given a set of base packages to scan. Refactored LazyWiringDeclarableSupport to implement the DisposableBean interface in order for any extending bean component to unregister itself from the SpringContextBootstrappingInitializer to stop receiving ApplicationContext event notifications when destroyed. Fully tested the application component scanning and configuration using Annotations and JavaConfig-based configuration, uplifting some of the application components (UserDao, UserService, etc) from the integration test and adding a UserApplicationConfiguration @Configuration component in order to test this functionlity properly. 2014-03-25 11:04:31 -07:00
John Blum
ba84061b48 Completed all testing and interface/functional changes for SGF-248 - Bootstrapping a Spring ApplicationContext with GemFire. 2014-03-25 11:04:10 -07:00
John Blum
5476837119 Renaming the SpringContextBootsrappingInitializerTest to SpringContextBootstrappingInitializerIntegrationTest to reflect the fact that the test class is actually an 'integration' test. Also renamed the cache-with-initializer.xml GemFire native configuration file to cache-with-spring-context-bootstrap-initializer.xml to indicate that we are using GemFire to bootstrap a Spring container. 2014-03-25 11:03:44 -07:00
John Blum
8e57cc05a3 Early solution for SGF-248 concerning bootstrapping a Spring ApplicationContext inside a GemFire Server-based JVM process when starting the GemFire Server from Gfsh. 2014-03-25 11:03:44 -07:00
John Blum
217732b7f7 Implements SGF-204 changing the default behavior or Region lookups. 2014-03-24 13:55:51 -07:00
John Blum
1594c5f062 Implements SGF-88 - Region Shortcuts; Implements SGF-257 - Strict types in the SDG XSD for Region data-policy and shortcut attributes; Fixes SGF-258 - missing data-policy attribute for Partitioned Regions; Fixes SGF-263 - ineffective application of disk-synchronous attribute setting on Region bean definitions defined with SDG XML namespace. 2014-03-21 00:35:32 -07:00
John Blum
942c5ca7be Added specific Spring Converter implementations for GemFire RegionShortcut and ClientRegionShortcut enumerated value classes. 2014-03-21 00:35:31 -07:00
John Blum
984df1b9d4 Refactored RegionFactoryBean and ParsingUtils classes to simplify the code. Specifically, simplified the logic in the parseExpiration and parseCustomExpiration methods while preserving functional behavior. 2014-03-21 00:35:31 -07:00
John Blum
c5a33d6fef Completes JIRA ticket SGF-204 changing the default behavior of peer and client Region types to not perform a lookup first of an existing Region of the same name/path if the Region was created and configured using native cache.xml in GemFire in addition Spring config. 2014-03-11 21:19:10 -07:00
John Blum
d2d54bf40c Completes JIRA ticket SGF-256 and upgrades Spring Data GemFire to Spring Framework 3.2.8 and Spring Data Commons 1.8.0. 2014-03-10 17:52:54 -07:00
John Blum
36de58ccd7 Implements JIRA ticket SGF-261 allowing an application domain object, or rather entity to be persisted to multiple Regions in the GemFire Cache. 2014-03-06 13:23:15 -08:00
John Blum
8fb61ef348 Adding additional test cases to re-inforce my feedback comments, specifically testing the Region 'Key' type and Entity '@Id property' type mismatch and constraint check in the GemfireRepositoryFactory.getTemplate(..) method, lines 128 and 129. 2014-03-06 13:23:15 -08:00
John Blum
19a1fe4bc0 Review and test changes for PR #55, which involves storing an entity to multiple Regions in the GemFire Cache. 2014-03-06 13:23:15 -08:00
Pid
5f98eb66b5 Add support for marking a repository with @Region rather than the entity 2014-03-06 13:22:49 -08:00
John Blum
06d3f62cac Additional test changes based on whether mocking is enabled or not. 2014-03-04 16:45:06 -08:00
John Blum
b4668b445e Test changes to properly assert Region Eviction Threshold attribute settings for various LRU Eviction Action algorithms like (ENTRY_COUNT, HEAP and MEMORY). 2014-03-04 12:21:12 -08:00
John Blum
a64a89e357 General test code cleanup and optimizations along with other code refactoring. 2014-03-03 13:06:33 -08:00
John Blum
2656a25056 Fixes JIRA issue SGF-259 involving circular dependencies between an Async Event Queue and corresponding, registered Async Event Listener. 2014-02-27 22:36:58 -08:00
John Blum
bc7e284fbc Fixes JIRA issue SGF-255 involving the required 'threshold' attribute in Region Eviction Attribute configuration settings. 2014-02-24 20:16:27 -08:00
John Blum
65ae4b87fe Fixes JIRA issus SGF-252 involving multiple, identically names Subregions and SDG's Repository extension improperly handling application domain objects associated by way of the @Region annotation. 2014-02-06 17:40:24 -08:00
John Blum
5660a78255 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. 2014-02-04 18:36:42 -08:00
John Blum
6e0bf24706 Fixes JIRA issues SGF-249 involving property placeholder values on Disk Store bean definition attributes, and specifically the compaction-threshold attribute, in the SDG XML namespace. 2014-01-28 17:27:27 -08:00
John Blum
d8dc9d4edb Fully fixes JIRA issue SGF-236 involving the Subregion bean names requiring a prepended forward slash when using the high-level region XML namespace abstractions, like gfe:replicated-region, vs. the gfe:lookup-region element. 2014-01-21 18:27:22 -08:00
John Blum
415a9a1239 Added additional assertions to the testDirectLookup test case asserting that the non-looked-up Customers and Customers/Accounts/Orders Regions do not exists as beans in the Spring context. 2014-01-21 13:09:02 -08:00
John Blum
8ee149e6e4 Partial Fix and Refactoring for JIRA issue SGF-236 enabling the <gfe:lookup-region/> nested element syntax to function properly. 2014-01-21 13:09:02 -08:00
John Blum
5cbe2b6260 Updated Spring Data GemFire Reference Documentation, updating author information and added 'LIKE' operator details to the 'Executing OQL Queries' section. 2014-01-17 22:18:03 -08:00
John Blum
cd8b1b24ca Fixed JIRA issue SGF-247 - boolean-based Repository queries generate UnsupportedOperationException. 2014-01-17 20:45:23 -08:00
John Blum
c278676423 Fixes JIRA issue SGF-244 involving the use of a ref attribute on the GatewaySender element's nested inner EventFilter element. 2013-12-19 16:04:18 -08:00
John Blum
8dee6f7ab2 Fixes JIRA issues SGF-238, SGF-239 and SGF-240 involving jndi-binding cache settings. 2013-12-13 14:59:03 -08:00
John Blum
aa68313899 Fixes JIRA issue SGF-234 for the spring-gemfire-1.3.xsd and spring-gemfire-1.4.xsd which incorrectly indicate that the pdx-persistent attribute defaults to true. 2013-12-09 18:12:16 -08:00
John Blum
bb97756f8d Fixes JIRA issue SGF-241 adding support for defining client sub-Regions using the gfe:client-region XML namespace element in an nested fashion. 2013-12-09 10:50:16 -08:00
John Blum
101d977026 Fixes bug SGF-225 involving GemFire SubRegion bean definition inconsistencies when data-policy is specified along with SGF-242 that involves the use of membership-attributes configuration on a GemFire Region. 2013-12-06 16:17:07 -08:00
John Blum
bccf918b72 General code refactoring and cleanup. 2013-12-02 15:55:26 -08:00
John Blum
f8368c72e8 Resolves JIRA issue SGF-235 fixing the NullPointerException in the DefaultFunctionArgumentResolver when the FunctionContext.getArguments method has no arguments, or incorrectly returns a null value. 2013-11-21 20:58:05 -08:00
John Blum
f3b22622b1 Fixes JIRA issues SGF-230 and SGF-233 involving the persistence on a Async Event Queue or Gateway Sender when a logical Disk Store name has been specified, or the disk-synchronous attribute has been set, requiring persistence to be enabled when all the user wanted was overflow. 2013-11-16 14:01:59 -08:00
John Blum
9a57b0579c Reverted the value of the parallel attribute in the Gateway Sender for the 'Orders' Replicate Region in the SubRegionSubElementTest class. 2013-11-16 12:30:14 -08:00
John Blum
be230df577 Fixed failing test cases in the SubRegionSubElementTest class due changes that fixes SGF-231 and SGF-232. 2013-11-16 12:21:52 -08:00
John Blum
2897b07ab0 Fixes JIRA issue SGF-232 - user is unable to specify Order Policy with a Serial Async Event Queue. Plus, made additional changes to the GatewaySenderFactoryBean class and associated tests/code for SGF-231. 2013-11-16 11:58:24 -08:00
John Blum
7994fdddbd Fixes JIRA issue SGF-231 - user is unable to specify Order Policy with Serial Gateway Senders. 2013-11-15 23:13:43 -08:00
John Blum
285978660c Fixed issue with CacheServerNamespaceTest.testBasicCacheServer test case method, finishing/rounding out the work that was done in SGF-218. 2013-11-14 12:03:18 -08:00
John Blum
d1ba02ab4c Formatting, removing unnecessary spacing. 2013-11-13 11:32:06 -08:00
John Blum
a09cdcb6c6 Removed the disk-store reference in the subscription-config subelement of the GemFire Cache Server bean definition since the Disk Store reference by name is invalid (referring to the Disk Store disk directory location and not the logical name of a valid Disk Store, see SGF-217 for further details). This change should also fix the nightly build. 2013-11-13 11:15:18 -08:00
John Blum
2d92aa3ebd Changing reference to Spring context configuration file in the @ContextConfiguration annotation to a relative location to avoid any potential failures from an unresovable configuration reference. 2013-11-12 13:30:26 -08:00
John Blum
ac5527ba52 General code refactoring and cleanup. 2013-11-11 12:59:40 -08:00
John Blum
ffadfc6cb2 Fixed JIRA issues SGF-219, SGF-220 and SGF-221 involving registering CacheListeners and adding Async Event Queues and Gateway Senders to GemFire Sub-Regions. 2013-11-08 16:53:35 -08:00
John Blum
1aea354e26 Merge branch 'SGF-216' of https://github.com/dturanski/spring-data-gemfire into dturanski-sgf216 2013-11-07 13:30:07 -08:00