Commit Graph

1003 Commits

Author SHA1 Message Date
Oliver Gierke
43a924a0a7 DATACMNS-844 - Removed LenientAssignableTypeFilter from RepositoryConfigurationDelegate.
The type was a workaround until an improvement in Spring Framework [0] was fixed. As we now rely on newer versions of the framework, we can remove that type.

[0] https://jira.spring.io/browse/SPR-12042
2016-04-10 13:54:29 +02:00
Oliver Gierke
f38b18702c DATACMNS-843 - Raised log level for multi-store detection in RepositoryConfigurationDelegate. 2016-04-10 13:49:38 +02:00
Oliver Gierke
7dcfa15bcf DATACMNS-843 - Raised log level for dropped repositories in strict configuration mode to INFO. 2016-04-10 11:34:21 +02:00
Oliver Gierke
fc76392643 DATACMNS-829 - Removed test method accidentally included in the backport. 2016-04-06 19:37:53 +02:00
Oliver Gierke
4eadc00856 DATACMNS-833 - Updated changelog. 2016-04-06 18:44:31 +02:00
Oliver Gierke
3d3c98d704 DATACMNS-823 - Updated changelog. 2016-03-18 13:19:18 +01:00
Oliver Gierke
bea31ae5f0 DATACMNS-829 - Fixed handling of Map null values in ProxyProjectionFactory.
We now eagerly return null values in attempts to project Map values.
2016-03-15 15:50:53 +01:00
Oliver Gierke
71de300ab1 DATACMNS-812 - Polishing.
Formatting and extension of copyright years.

Original pull request: #154.
2016-03-07 11:33:12 +01:00
Timothy Cheng
b3325c466b DATACMNS-812 - Fixed PageImpl.toString() to improve readability.
Add one to the getNumber() in PageImpl.toString() since it uses 0-based index.

Original pull request: #154.
2016-03-07 11:33:12 +01:00
Oliver Gierke
86bfa0b7ab DATACMNS-817 - Updated changelog. 2016-02-23 14:27:20 +01:00
Oliver Gierke
f8c81c95d6 DATACMNS-820 - Polishing.
Fixed indentation to use tabs instead of spaces. Tweaked structure of if-clauses in PropertyAccessingMethodInterceptor to reduce nesting. Made helper method static.

Restructured test cases slightly and used ExpectedException rule to verify exceptions. Moved newly introduced test methods more to the end of the file (new tests last).

Added author and copyright year extensions where necessary.

Original pull request: #155.
2016-02-22 18:43:03 +01:00
Mark Paluch
6962286c05 DATACMNS-820 - Allow setter invocations in projections backed by beans.
Invocations to setter methods are now passed to the backing bean.

Original pull request: #155.
2016-02-20 20:39:43 +01:00
Oliver Gierke
76cb60bef8 DATACMNS-811 - Updated changelog. 2016-02-12 22:09:35 +01:00
Oliver Gierke
d3e7828729 DATACMNS-804 - ParametersParameterAccessor now correctly iterates over only the bindable values.
Corrected the way the BindableParametersIterator works by limiting the upper bound of the iteration to the number of actually bindable parameters.
2016-01-21 10:21:53 +01:00
Oliver Gierke
7e901f1c2a DATACMNS-797 - Updated changelog. 2015-12-18 10:50:47 +01:00
Pepe García
bfe39cabfc DATACMNS-789 - Fixed typo in JavaDoc of Page.
Original pull request: #146.
2015-11-23 17:13:30 +01:00
Oliver Gierke
dbfbc4899c DATACMNS-786 - Fixed typo in section of repository populators in reference documentation. 2015-11-20 17:39:56 +01:00
Oliver Gierke
8b6c94f0bb DATACMNS-784 - Updated changelog. 2015-11-16 08:25:45 +01:00
Oliver Gierke
f7bc972c93 DATACMNS-783 - DefaultTypeMapper now specializes raw generic types.
If the type lookup from the store source returns a raw generic type (e.g. resolving the value of a generic property against a value of that generic type - i.e. not a more concrete type binding the generic information) in the context of a generic property, we previously did not apply the generics information of the contextual instance to that very raw type.

We now expose a TypeInformation.specialize(ClassTypeInformation) which applies the current generics context to the given raw type and basically creates a synthetic parameterized TypeInformation instance.

DefaultTypeMapper applies this specialization by default now with ClassTypeInformation simply returning the given type as is so that we don't create any resolution overhead in case no generics are involved in the first place.
2015-11-13 17:17:23 +01:00
Oliver Gierke
48b3ebf4b8 DATACMNS-782 - ProxyProjectionFactory now converts primitive attribute values.
The ProjectingMethodInterceptor now uses a default ConversionService instance to try to convert a potentially not matching result of the target invocation into the type the projection requires before the attempt to create nested projection.
2015-11-12 11:18:54 +01:00
Oliver Gierke
50d38eba5c DATACMNS-777 - Updated changelog. 2015-10-14 13:42:38 +02:00
Oliver Gierke
ee2c4c6420 DATACMNS-769 - Fixed assignability check for from QueryMethod.
The assignability check of method return types now explicitly detects wrapper types supported in QueryExceutionConverters and automatically unwraps those before the actual check.
2015-10-05 18:45:22 +02:00
Ricardo Espirito Santo
bd628a006b DATACMNS-771 - Fixed typo in BasicPersistentEntity.
Original pull request: #145.
2015-10-05 18:32:16 +02:00
Oliver Gierke
19ab5ee1f5 DATACMNS-753 - Fixed default handling of empty sort parameter.
We now correctly inspect the sort parameter values and also fall back to the default if a single, empty parameter value is given.

Related ticket: DATACMNS-408.
Related pull request: #138.
2015-09-09 17:57:18 +02:00
Ruben Dijkstra
a8aba16460 DATACMNS-753 - Added test case to see parsing of Sort is not considering defaults for empty parameter.
Related ticket: DATACMNS-408.
Original pull request: #138.
2015-09-09 17:57:18 +02:00
Oliver Gierke
954e6b0856 DATACMNS-762 - Polished section on dependencies in reference documentation.
Linked back to the release train names from the section on dependency management with Boot for clarity. Added additional line break to avoid the first line in the repositories.adoc being interpreted as text.
2015-09-03 18:14:56 +02:00
Oliver Gierke
835a5a305f DATACMNS-761 - Fixed page size detection for a PageableHandlerMethodArgumentResolver configured to one-indexed parameters. 2015-09-02 16:15:58 +02:00
Oliver Gierke
f696cdc1b5 DATACMNS-759 - Updated changelog. 2015-09-01 12:26:22 +02:00
Oliver Gierke
dc38da86d8 DATACMNS-755 - Fixed QSort property translation for plain paths.
If standard Querydsl StringPaths are used without any reference to a query class tree, we previously dropped the first segment of the path expression.

Moved to a completely different algorithm to determine the path by just using the Path's toString() representation and the root removed if necessary.
2015-08-18 13:54:41 +02:00
Martin Grigorov
f47f65279f DATACMNS-754 - Fixed code sample in repositories reference documentation.
PersonRepository example now shows Person persisted instead of User instances.

Original pull request: #140.
2015-08-17 18:14:16 +02:00
Oliver Gierke
bbfd6266ae DATACMNS-750 - Fixed part creation in query methods that have keywords in property paths.
If a keyword was contained in a complex property path (like In in SomeInfo), the property path was invalidly cut of in the middle. We now simply use the length of the keyword to extract the actual property from the candidate. This should be faster anyway as it doesn't require another lookup of the pattern in the source candidate.

Related pull request: #136.
2015-08-13 12:41:03 +02:00
Oliver Gierke
3014ee2f58 DATACMNS-749 - RepositoryFactorySupport now registers global ExposeInvocationInterceptor.
This frees RepositoryProxyPostProcessors from having to register the interceptor manually and thus prevents it from being registered multiple times.
2015-08-08 10:59:34 +02:00
Oliver Gierke
7b16798013 DATACMNS-746 - Improved JavaDoc of PersistentPropertyAccessor.
The JavaDoc of PersistentPropertyAccessor now explicitly hints to PersistentEntity.getPropertyAccessor(…) to make obvious how instances of it can be obtained.
2015-08-07 16:16:43 +02:00
Oliver Gierke
47dcca983e DATACMNS-742 - Updated changelog. 2015-08-04 14:37:58 +02:00
Oliver Gierke
fd8ddb989c DATACMNS-740 - After release cleanups. 2015-07-28 16:28:33 +02:00
Spring Buildmaster
4048efa4ab DATACMNS-740 - Prepare next development iteration. 2015-07-28 06:22:15 -07:00
Spring Buildmaster
5fc096d2d4 DATACMNS-740 - Release version 1.10.2 (Fowler SR2). 2015-07-28 06:22:13 -07:00
Oliver Gierke
9d7b8ba5c6 DATACMNS-740 - Prepare 1.10.2.RELEASE (Fowler SR2). 2015-07-28 14:52:47 +02:00
Oliver Gierke
fc28369c66 DATACMNS-740 - Updated changelog. 2015-07-28 14:52:26 +02:00
Oliver Gierke
f2ab861686 DATACMNS-736 - Polishing.
Tweaked unit test to check for the correct wording. Polished DistanceFormatterUnitTests to actually run in a Maven build.

Original pull request: #134.
2015-07-21 16:52:26 +02:00
David Syer
a6e3f8ba12 DATACMNS-736 - Fixed validation error message in PointFormatter.
PointFormatter error message now states it's expecting comma separated values. Previously it erroneously reported expecting a semicolon.

Original pull request: #134.
2015-07-21 16:52:23 +02:00
Oliver Gierke
4eac82209b DATACMNS-733 - Made all references to DefaultParameterNameDiscoverer non-static.
To prevent classes from being garbage collected due to Class<?> references within DefaultParameterNameDiscoverer we no keep all ParameterNameDiscoverer instances in a non-static field.
2015-07-20 08:29:15 +02:00
Oliver Gierke
164e64bb15 DATACMNS-715 - Introduced support for JTA 2.1 @Transactional.
Refreshed the copy of AnnotationTransactionAttributeSource to pull in the JTA 2.1 support introduced in the Spring Framework class. Opened up a ticket [0] to improve Spring Framework to eventually be able to ditch the copies to prevent such scenarios in the future (the missing feature introduced that is).
2015-07-17 09:44:13 +02:00
Oliver Gierke
40cf4c6346 DATACMNS-728 - Added execution of build against Spring 4.2 for Travis. 2015-07-09 17:58:09 +02:00
Oliver Gierke
a9b9c72629 DATACMNS-723 - Updated changelog. 2015-07-01 09:54:05 +02:00
Oliver Gierke
cc6b298af6 DATACMNS-724 - Updated changelog. 2015-07-01 09:53:48 +02:00
Oliver Gierke
924e24025a DATACMNS-725 - After release cleanups. 2015-06-30 14:20:10 +02:00
Spring Buildmaster
099ea33525 DATACMNS-725 - Prepare next development iteration. 2015-06-30 03:45:08 -07:00
Spring Buildmaster
79007c7ebc DATACMNS-725 - Release version 1.10.1 (Fowler SR1). 2015-06-30 03:45:05 -07:00
Oliver Gierke
16cf0e9688 DATACMNS-725 - Prepare 1.10.1.RELEASE (Fowler SR1). 2015-06-30 12:31:52 +02:00