Commit Graph

467 Commits

Author SHA1 Message Date
Oliver Gierke
14815dca3a DATACMNS-192 - Updated changelog for 1.4.0.RELEASE. 2012-10-09 14:24:11 +02:00
Oliver Gierke
3498af528a DATACMNS-242 - Improved exception messages in QueryMethod. 2012-10-09 14:05:34 +02:00
Oliver Gierke
e675e14082 DATACMNS-241 - Upgraded to Spring HATEOAS 0.3.0.RELEASE. 2012-10-09 14:05:17 +02:00
Oliver Gierke
75026cdb1d DATACMNS-239 - Fixed event handling in AbstractResourcePopulatorFactoryBean.
Switched from implementing ApplicationEventPublisherAware to ApplicationContextAware to get a reference to an ApplicationContext to fix comparison of the event source.
2012-10-09 10:59:08 +02:00
Oliver Gierke
861cf40419 DATACMNS-240 - Upgraded to Querydsl 2.8.0. 2012-10-08 14:46:31 +02:00
Oliver Gierke
5ed34bc2ce DATACMNS-235 - Enforce dependency ordering for custom repository implementations. 2012-09-18 11:40:26 +02:00
Oliver Gierke
8344387738 DATAJPA-251 - Updated reference documentation.
Improved code samples for PageableArgumentResolver. Corrected registration info for DomainClassConverter and added JavaConfig example. Replace all obsolete readAll(…) method samples with findAll(…). Added hint to @PageableDefaults now being aware of sort properties and direction.
2012-09-17 16:26:25 +02:00
Oliver Gierke
c8c26baf7c DATACMNS-230 - Clarify packages of Page and Sort in reference docs.
Fully qualified first mentions of Pageable and Sort to avoid ambiguities with types of potentially available types of the same name in a store specific implementation.
2012-09-17 11:24:46 +02:00
Oliver Gierke
936facac88 DATACMNS-146 - PageableDefaults now takes sorting info as well.
PageableDefaults now has a sort and sortDir attribute to allow defining the default sorting options applied to the pageable.
2012-09-17 10:48:32 +02:00
Oliver Gierke
9b4cbb48f1 DATACMNS-233 - DomainClassConverter is now safe against null and empty Strings.
Added explicit check for null or empty String source before attempting conversion. Returning null for both cases.
2012-09-17 10:23:43 +02:00
Oliver Gierke
51d45f34c3 DATACMNS-229 - RepositoryInterfaceAwareBeanPostProcessor now uses bean class loader. 2012-09-13 20:00:53 +02:00
Oliver Gierke
346de533bc DATACMNS-231 - Polished Sort domain class.
Improved/fixed JavaDoc. Made orders property final. Fixed formatting here and there. Deprecated Order.create(…) factory method as new Sort(…) can be used instead.
2012-09-13 19:26:43 +02:00
Oliver Gierke
96bc596333 DATACMNS-176 - ClassTypeInformation now always inspects user class.
Unwrap potentially wrapped CBGlib classes handed to ClassTypeInformation for inspection.
2012-09-13 19:21:10 +02:00
Oliver Gierke
a01de83547 DATACMNS-228 - AbstractMappingContext disregards Groovy meta fields.
Refactored persistent field discovery by extracting the FieldFilter implementation and improving the way excluded fields are detected. We now exclude all fields named "this$*" as well as a metaClass field of type groovy.lang.MetaClass explicitly.
2012-09-10 12:56:20 +02:00
Oliver Gierke
e922845407 DATACMNS-220, DATAJPA-174 - Updated reference docs on query parsing.
Updated the repositories reference documentation section on query parsing to reflect the correct usage of method prefixes, how to use the Distinct, IgnoreCase and OrderBy clauses.
2012-09-04 11:05:55 +02:00
Oliver Gierke
bd6c0bf7c6 DATACMNS-224 - RepositoryPopulator now throws event after population.
The ResourceReaderRepositoryPopulator now throws an RepositoriesPopulatedEvent after the population was finished. This indicates the data provided through the resources having been inserted into the database and the repository setup (including population) being completed.
2012-09-04 10:28:06 +02:00
Oliver Gierke
8604de5597 DATACMNS-223 - Added logging to ResourceReaderRepositoryPopulator.
Logging the read resources in INFO level, the individual elements persisted in DEBUG. Polished JavaDoc.
2012-09-04 10:02:32 +02:00
Oliver Gierke
5c54e7fef1 DATACMNS-222 - Fixed JavaDoc of AbstractRepositoryPopulator. 2012-09-04 09:51:37 +02:00
Aleksander Blomskøld
f0ffd0316c DATACMNS-221 - Added support for Unicode characters in PartTree.
Altered parsing regular expressions to support unicode characters.
2012-09-04 09:08:11 +02:00
Oliver Gierke
4939fbf3bc DATACMNS-226 - Fixed bug in ConfigurableTypeInformationMapper caching.
Separated ConfigurableTypeInformationMapper from MappingContextTypeInformationMapper. The latter now lazily picks up the alias information if the cached values do not contain aliases.

Polished JavaDocs and clarified meaning of null values.
2012-09-03 13:36:34 +02:00
Oliver Gierke
d0e0c8cf5f DATACMNS-225 - Updated Querydsl Maven plugin to 1.0.4. 2012-09-03 13:14:56 +02:00
Spring Buildmaster
ed7beffbde DATACMNS-217 - Prepare next development iteration. 2012-08-23 10:25:19 -07:00
Spring Buildmaster
11da3c3dab DATACMNS-217 - Release version 1.4.0.RC1. 2012-08-23 10:25:15 -07:00
Oliver Gierke
7cb77eb1db DATACMNS-217 - Updated changelog for 1.4.0.RC1. 2012-08-23 19:18:28 +02:00
Oliver Gierke
566a9cdd1e DATACMNS-217 - Update Spring Hateoas dependency to 0.2.0.RELEASE. 2012-08-23 18:55:20 +02:00
Oliver Gierke
6d2d22954f DATACMNS-218 - Expose RevisionMetadata from Revision. 2012-08-23 18:51:50 +02:00
Oliver Gierke
b570c57df5 DATACMNS-219 - Make Spring 3.1.2.RELEASE default Spring dependency version.
We move away from Maven version ranges as they complicate the build and dependency resolution process. They make the build in-reproducible. Users stuck with a 3.0.x version of Spring will now have to manually declare Spring dependencies in their needed 3.0.x version. Not that at least Spring 3.0.7 is required currently.
2012-08-20 16:47:51 +02:00
Oliver Gierke
307e003902 DATACMNS-214 - Simple types are not considered PersistentEntities anymore.
Before actually adding a type as PersistentEntity, AbstractMappingContext will call shouldCreatePersistentEntityFor(TypeInformation<?> type) now. The default implementation will just consider the SimpleTypeHolder for that decision. However as adding a Converter to the context will render the converted object to be treated as simple, one might want to override this method to be more precise and only rule out store-specific simple types at this stage.
2012-08-16 12:55:07 +02:00
Oliver Gierke
0fc753f151 DATACMNS-211 - Fixed component type resolving for arrays.
ClassTypeInformation does not resolve nested array types anymore as a multidimensional array in fact has a component type of an array of one dimension less, e.g. String[][].getComponentType() -> String[].
2012-08-16 12:52:25 +02:00
Oliver Gierke
c6b04618b9 DATACMNS-216 - Removed deprecations from AbstractMappingContext.
Removed the deprecation as it might still be necessary to set the ApplicationEventPublisher to emit MappingContextEvents.
2012-08-16 12:52:24 +02:00
Oliver Gierke
d9e5d92a16 DATACMNS-207 - Removed getPropertyDescriptor() from PersistentProperty. 2012-08-16 12:52:24 +02:00
Oliver Gierke
beea916da0 DATACMNS-215 - Removed validators from MappingContext API. 2012-08-16 12:52:24 +02:00
Oliver Gierke
f4a5edcf44 DATACMNS-213 - Declaring all compile time dependencies locally.
There have been a few dependencies which we depended on on compile time but which were pulled into the classpath transitively. Declaring these dependencies now explicitly. Keeping them optional to allow minimal footprint.
2012-08-13 14:50:03 +02:00
Oliver Gierke
35d96afac6 DATACMNS-212 - Sonargraph checks and improvements.
Merged mapping.context and mapping.event packages. Moved MappingContext event into context package. Updated Sonargraph architecture description and completed package and dependency mapping.
2012-08-13 14:26:40 +02:00
Oliver Gierke
27a8a8df91 DATACMNS-47 - Guard against @EnableRepositories annotations not carrying @Inherited.
If an @EnableRepository annotation does not carry an @Inherited annotation and the annotation is used in a JavaConfig inheritance scenario the ImportBeanDefinitionRegistrar gets invoked without the annotation metadata available. The RepositoryBeanDefinitionRegistrarSupport now guards against that case and will not invoke registration of repository bean definitions. It's strongly recommended to equip @EnableRepository annotations with @Inherited to accommodate this scenario.
2012-08-13 11:23:52 +02:00
Oliver Gierke
8d156fb591 DATACMNS-210 - Removed references to removed single <repository /> declarations from reference documentation. 2012-08-10 19:46:24 +02:00
Oliver Gierke
f1aff4ed10 DATACMNS-211 - Improved TypeInformation abstraction. 2012-08-07 19:28:30 +02:00
Oliver Gierke
f532404521 DATACMNS-206 - Guard against PropertyDescriptor being null.
Added guards to PropertyDescriptor access to prevent NullPointerExceptions in cases it is not given in the first place. Polished JavaDoc for test case.
2012-07-31 15:41:56 +02:00
Oliver Gierke
fc57f602e9 DATACMNS-209 - MappingContextEvent now carries its emitting MappingContext.
MappingContextEvent now has an wasEmittedBy(MappingContext<?, ?> context) method to allow identifying whether the event was emitted by the given MappingContext. Useful if multiple MappingContexts are in place and one wants to react on the events emitted by a particular one only.
2012-07-31 15:38:16 +02:00
Oliver Gierke
583a60baed DATACMNS-206 - Improved working with getters and setters for PersistentProperty.
PersistentProperty now exposes getGetter() and getSetter() methods which restrict the methods being returned to return or accept type compatible values to the actual properties type. Thus when you implement a custom getter or setter which - by the definition of the JavaBean spec - would qualify as read or write method for a particular property, we now ensure that they are only considered if they match the type of the field exposed.
2012-07-24 15:12:04 +02:00
Oliver Gierke
628ddc6a35 DATACMNS-205 - Fix broken reference documentation.
The section on the repository exporters contained a code sample using language="javascript". As the highlighting in the docbkx plugin doesn't support javascript as language it will break the build of other reference documents including this one. Removed the language attribute for this sample entirely.
2012-07-24 12:59:56 +02:00
Spring Buildmaster
d66d166e8b DATACMNS-191 - Prepare next development iteration. 2012-07-23 09:51:32 -07:00
Spring Buildmaster
94d042a573 DATACMNS-191 - Release version 1.4.0.M1. 2012-07-23 09:51:28 -07:00
Oliver Gierke
dc18fe2a12 DATACMNS-191 - Prepare changelog for 1.4.0.M1. 2012-07-23 18:36:02 +02:00
Oliver Gierke
5b1fe225b1 DATACMNS-204 - Prepare changelog for 1.3.2. 2012-07-23 17:46:18 +02:00
Oliver Gierke
f476100f28 DATACMNS-203 - Re-enabled accidentally disabled unit tests. 2012-07-23 17:37:47 +02:00
Oliver Gierke
c64f01414f DATACMNS-164 - Added support for XML/JSON marshaling of Page, Pageable and Sort.
Added XmlTypeAdapter implementations that convert the PageImpl, PageRequest and Sort value objects into a JAXB marshalable object.
2012-07-23 17:27:17 +02:00
Oliver Gierke
cf71070de6 DATACMNS-202 - Move helper classes for BeanDefinitionParses into Commons. 2012-07-18 23:14:28 +02:00
Oliver Gierke
d7df08f6b7 DATACMNS-201 - Fixed critical FindBugs warnings. 2012-07-18 20:53:24 +02:00
Oliver Gierke
96795f2980 DATACMNS-47 - Add support for JavaConfig based repository configuration.
Completely rewrote namespace bean definition parsing to be extendable more easily. Separated XML concerns from annotation based configuration. The central point to extend the namespace parsing for a certain module is now hidden behind the RepositoryConfigurationExtension interface (have a look at the RepositoryConfigurationExtensionSupport base class as well).
2012-07-16 19:49:56 +02:00