Commit Graph

319 Commits

Author SHA1 Message Date
Oliver Gierke
4b01b1382e DATACMNS-71 - Fixed missing closing quote in reference documentation. 2011-12-02 14:16:55 +01:00
Oliver Gierke
0fc2985ccb DATACMNS-71 - Fixed cross reference in namespace documentation. 2011-12-02 14:07:28 +01:00
Oliver Gierke
f8b37b8501 DATACMNS-91 - Clarify contract for CrudRepository.
Added JavaDoc to document expected exceptions for null parameters.
2011-12-02 13:31:02 +01:00
Oliver Gierke
0b04251bbe DATACMNS-92 - PersistentEntities are not held in cache if verify() fails.
Documented verify() to throw a MappingException in case verification fails. Let this exception flying cause the PersistentEntity already added to the cache be removed from it in turn.

Fixed execution of integration tests and tests in classes starting with Abstract* along the way. Upgraded to Mockito 1.8.5.
2011-12-02 12:54:51 +01:00
Oliver Gierke
89fb4a1b4a DATACMNS-103 - Fixed repository urls. 2011-12-02 11:29:26 +01:00
Oliver Gierke
a5a925e37a DATACMNS-77 - Introduced caching inside ClassTypeInformation.
ClassTypeInformation now holds a cache for Class<?> to TypeInformation<?> mappings. It also exposes constants for Object, Collection, Set, List and Map TypeInformations.
2011-12-02 11:29:11 +01:00
Oliver Gierke
a4ac30d52b DATACMNS-108 - BeanWrapper now handles exceptions.
Removed explicit declaration of throwing IllegalAccessException and InvocationTargetException.
2011-12-02 10:08:10 +01:00
Oliver Gierke
5eaa87ceb0 DATACMNS-103 - Improved 3.1 build.
We now use an exclusive upper bound of 4.0.0.RELEASE for Spring dependencies. With the snapshot repository removed we now get the latest release milestone to build on. Changed repository links to use http://repo.springframework.org to route dependencies through our Artifactory instance. Fixed some plugin dependency versions along the way.
2011-12-01 16:21:19 +01:00
Oliver Gierke
7d2314ab7e DATACMNS-103 - Upgraded to Spring 3.1.0.RC2. 2011-11-30 08:34:44 +01:00
Oliver Gierke
8286bffb89 DATACMNS-101 - Made AbstractMappingContext more flexible for extension.
The former getNestedTypeToAdd(…) method in AbstractMappingContext is now located in PersistentProperty to allow easier customization of the implementation. We also not only support returning one type from it but rather an Iterable of them to prepare handling of custom types implementing Collection interfaces.
2011-11-28 15:01:54 +01:00
Oliver Gierke
f0735392d9 DATACMNS-103 - Create hybrid Spring 3.0.6 / 3.1 build.
Introduced version range for Spring dependency of [3.0.6.RELEASE, 3.1.0.RC1]. This causes Maven to scan the metadata in the configured repositories to find the latest version up to Spring 3.1.0.RC1. For users having the Spring Milestone repo configured this will resolve against 3.1.0.RC1 then. All others will get the latest one from Maven Central which is 3.0.6. To let Bundlor still use 3.0.6 I've created a org.springframework.version.30 property and let template.mf use that.
2011-11-28 12:10:51 +01:00
Oliver Gierke
1fb6e70c2e DATACMNS-100 - Removed Number from the Set of simple types.
Removing Number from SimpleTypeHolder's default Set of types results in
Number sub-types not explicitly listed not being considered as simple
by default.
2011-11-24 15:15:01 +01:00
Oliver Gierke
966b9e1da9 Removed unused import. 2011-11-23 12:40:06 +01:00
Oliver Gierke
1468ba5735 DATACMNS-99 - SimpleTypeHolder considers complex Enums as simple now.
Fixed SimpleTypeHolder.isSimpleType(Class<?> type) for calls where the Class object handed in is derived from an Enum that implements an abstract method. These Class objects return false for a call to isEnum(). So an ….isAssignableFrom(…) check is safer.
2011-11-23 11:51:25 +01:00
Oliver Gierke
904578d034 DATACMNS-97 - Added PartTree.getParts(Type type).
Added method to allow iterating over Parts of a given type.
2011-11-21 19:00:36 +01:00
Oliver Gierke
9b3d2d0669 DATACMNS-98 - Fixed potential ClassCastException for domain type lookup for query methods.
Refactored the definition of what domain class is returned from a query method into a common AbstractRepositoryMetadata and moved ClassUtils.getReturnedDomainClass into RepositoryMetadata. Moved test cases accordingly. Added getReturnType(Method method) to TypeInformation.
2011-11-21 19:00:01 +01:00
Oliver Gierke
3a38161953 DATACMNS-91 - Clarify JavaDoc of CrudRepository.
Explicitly define the expected behavior for null parameters in CRUD methods to throw an IllegalArgumentException.
2011-10-24 14:47:08 -05:00
Jean-Pierre Bergamin
0762a34fab DATACMNS-93 - Add dynamic package import directive.
Added "DynamicImport-Package: *" to template.mf so that repository interfaces from other bundles can be read.
2011-10-24 14:45:42 -05:00
Thomas Risberg
d56e9a0dc0 prepared for 1.2.0 snapshot builds 2011-10-21 16:19:28 -04:00
Thomas Risberg
c3e04eefea prepared for Spring Data Commons 1.2.0.M2 release 2011-10-21 16:16:15 -04:00
Oliver Gierke
02e884ed9d DATACMNS-87 - Avoid creating PersistentEntity for leaf property in AbstractMappingContext.getPersistentPropertyPath(…). 2011-10-13 16:43:32 +02:00
Oliver Gierke
5829ad2eb7 DATACMNS-73 - Further refactorings.
Add license headers and made properties final where possible.
2011-10-12 18:31:49 +02:00
Thomas Risberg
60d0b9c428 DATACMNS-73 - Created dedicated cross-store package.
Adding back/moving missing classes
2011-10-12 10:54:20 -04:00
Oliver Gierke
a31046f634 Updated Sonargraph architecture description.
Introduced Conversion layer with allowed dependencies to Mapping and Core. Added Authentication subsystem to Core layer. Adapted mapping of Cross-store subsystem according to new package name.
2011-10-12 14:50:17 +02:00
Oliver Gierke
d71e6c093c DATACMNS-73 - Created dedicated cross-store package.
Removed obsolete classes.
2011-10-12 14:39:53 +02:00
Thomas Risberg
281fd27cc0 DATACMNS-86 Removing transaction package and moving ChangeSetBeckedTransactionSynchronization class to persistence package 2011-10-12 05:43:32 -04:00
Oliver Gierke
f54ddf7cb1 Polishing. 2011-10-11 13:02:21 +02:00
Michael Hunger
89b2aa162a DATACMNS-85 - Extended PersistentPropertyPath with getLength() and getParentPath(). 2011-10-10 14:53:13 +02:00
Oliver Gierke
a73e2ed3e0 DATACMNS-85 - Extended PersistenPropertyPath.
PersistentPropertyPath got a few new methods to build String representations of it. Beyond that we introduced accessor methods for the base and leaf path as well as the ability to detect base paths and create path extensions based on a given base path.
2011-10-09 13:03:50 +02:00
Oliver Gierke
4e27cce691 DATACMNS-84 - Improved infrastructure to access PersistentProperty paths.
Refactored MappingContext.getPersistentPropertyPath(…) to return a PersistentPropertyPath instance which allows iterating over the properties returned for the Property delivered as well as creating dot paths from it.

Renamed Property to PropertyPath and moved it into mapping package.
2011-10-07 11:36:20 +02:00
Oliver Gierke
6258d05d58 DATACMNS-82 - Removed transaction manager bean configuration.
Always setting a transaction manager breaks repository factories that do not expose a transactionManager property. Thus it's now the responsibility of the concrete BeanDefinitionParser to parse transaction manager configuration.
2011-09-30 12:11:36 +02:00
Oliver Gierke
fb9fb5edde DATACMNS-83 - RepositoryInterfaceAwareBeanPostProcessor logs not being able to load a repository interface. 2011-09-30 10:16:22 +02:00
Oliver Gierke
d3c2cce6ca DATACMNS-82 - Default referenced transaction manager to transactionManager.
Setting a default transaction manager bean name increases performance of transaction interception as we can lookup the PlatformTransactionManager by name rather than by type.
2011-09-29 18:51:41 +02:00
Oliver Gierke
532e5b2ace DATACMNS-81 - Fixed potential NullPointerException.
ConcurrentHashMap does not allow null values to be set so we now store Void.class as custom null-value instead and default this value back to null in predictBeanType(…).
2011-09-29 18:45:31 +02:00
Igor Mihalik
284809a3ac DATADOC-80 - Spring Framework version upgrade to 3.0.6.RELEASE 2011-09-28 18:10:25 +02:00
Oliver Gierke
8ad6fe9d4c DATACMNS-79 - UserCredentials treats empty Strings passed as null. 2011-09-27 16:40:56 +02:00
Oliver Gierke
61bf243467 DATACMNS-78 - Added LessThanEqual and GreaterThanEqual as supported keywords. 2011-09-27 11:31:50 +02:00
Oliver Gierke
4ee29c5c6c DATACMNS-76 - Introduced interfaces for entity conversion.
Extracted interfaces for entity conversion and type mapping from MongoDB module.
2011-09-26 20:01:35 +02:00
Oliver Gierke
b97447bce8 Added Sonargraph architecture description. 2011-09-14 17:56:27 +02:00
Oliver Gierke
04165ab000 DATACMNS-72 - A lot of improvements related to Sonar results.
Fixed quite a lot of FindBugs and Checkstyle warnings. Removed unused classes, polished JavaDoc.
2011-09-07 07:59:51 +02:00
Thomas Risberg
2192c4684e prepared for 1.2.0 snapshot builds 2011-09-01 20:21:45 -04:00
Thomas Risberg
04f4e9f2b8 prepared for Spring Data Commons 1.2.0.M1 release 2011-09-01 20:17:20 -04:00
Thomas Risberg
2222e82f25 updated changelog for 1.2.0.M1 2011-09-01 20:09:14 -04:00
Oliver Gierke
7126b11173 Formatting. 2011-09-01 18:15:09 +02:00
Phil Webb
112127d35f DATACMNS-69 - Updated cache key to bean name rather than class. 2011-09-01 14:47:12 +02:00
Oliver Gierke
1646f85a53 DATADOC-68 - Refactorings to support geo-near queries.
Removed dependency from Parameter to Parameters as it is obsolete. Let ClassUtils return component type for Iterables piped into getReturnedDomainClass(…).
2011-08-31 21:48:49 +02:00
Oliver Gierke
a32d80379b DATACMNS-69 - Added caching to RepositoryInterfaceAwareBeanPostProcessor.
Actual types resolved in getClassForPropertyValue(…) get cached now to avoid unnecessary attempt to load classes.
2011-08-31 21:22:47 +02:00
Oliver Gierke
c57d5246e3 DATACMNS-68 - Fixed potential NPE in AbstractPersistentProperty.
Fixed ClassTypeInformation returning correct component types for types implementing or extending a Collection or Map type.
2011-08-31 21:06:03 +02:00
Phillip Webb
0d83b27f62 DATACMNS-66 - Update shouldIgnoreCase to enum.
Change shouldIgnoreCase() to return an enum value allowing for exceptions to be thrown depending on when ignoreCase or allIgnoreCase is used.
2011-08-29 17:59:40 +02:00
Phillip Webb
f96dc0817a DATACMNS-66 - Polishing.
Removed Part.shouldAlwaysIgnoreCase() and don't constraint Part.shouldIgnoreCase() to String parts anymore.
2011-08-25 20:51:35 +02:00