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
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
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
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
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
Phil Webb
7ff8a43a75
DATACMNS-66 - Added support for IgnoreCase as query keyword.
...
The query parsing subsystem now supports using IgnoreCase when referencing String parameters, e.g.:
findByUsernameIgnoreCase(String username);
Both 'IgnoreCase' and 'IgnoringCase' are supported. If you'd like to entirely ignore cases for all String property references add 'AllIgnoreCase' or 'AllIgnoringCase' to the query method.
2011-08-25 12:53:08 +02:00
Oliver Gierke
651a1f2db2
DATACMNS-67 - QueryMethod considers methods retuning Iterable collection queries.
2011-08-25 07:56:21 +02:00
Oliver Gierke
f13c53866c
Polished UserCredentials value object.
2011-08-25 07:52:18 +02:00
Oliver Gierke
154794f91b
DATACMNS-65 - Using ReentrantReadWriteLock to prevent race conditions in PersistentEntity creation.
...
We have to lock PersistentEntity creation as instances could be prematurely handed out and iteration over the properties might interfere new properties being added to the Set iterated over.
2011-08-23 20:12:54 +02:00
Oliver Gierke
e91e729098
DATACMNS-64 - QueryMethod now rejects paging methods without a Pageable argument.
...
Refactored ClassUtils.assertReturnType(…) to positively discover subtypes of the given types as well. Renamed the method accordingly.
2011-08-21 16:45:25 +02:00
Oliver Gierke
e21dd1d828
DATACMNS-63 - Added fromReturnTypeOf(…) to ClassTypeInformation.
2011-08-21 16:30:20 +02:00
Oliver Gierke
5cfd8bc3df
DATACMNS-61 - Fixed Parameters lookup in QueryMethod.
2011-08-21 14:46:44 +02:00
Oliver Gierke
2b167566e1
DATACMNS-62 - Dropped QueryMethod.Type enum and made accessor methods for query type public.
2011-08-21 14:26:30 +02:00
Oliver Gierke
4074f2e387
DATACMNS-61 - Refactored QueryMethod, Parameters and Parameter to be more open for extension.
...
QueryMethod now provides a protected method to allow customization of the Parameters instance being used. Removed final modifier from Parameters and Parameter classes to allow extension. Refactored Parameter to be based on Spring's MethodParameter for more encapsulation. Added callback method to Parameters to allow customizing Parameter instance creation. Added protected method to ParametersParameterAccessor to get any parameter value by index.
2011-08-21 14:23:47 +02:00
Oliver Gierke
307993ac9b
Fixed potential NullPointerExceptions for TypeDiscoverer.getComponentType() and getMapValueType().
2011-08-19 22:44:13 +02:00
Oliver Gierke
c71f2684d3
Made properties of AbstractMappingContext final where possible.
2011-08-19 21:12:03 +02:00
Oliver Gierke
a330301b6a
SimpleTypeHolder considers Object to be a simple type.
2011-08-19 21:11:24 +02:00
Oliver Gierke
40648c82a7
Formatting.
2011-08-16 17:47:12 +02:00
Oliver Gierke
1ee347cf40
DATACMNS-59 - AbstractQueryCreator now handles static and dynamic sorting combined.
...
Added and(…) method to Sort to combine two Sort instances and produce a resulting Sort.
2011-08-16 17:47:00 +02:00
Oliver Gierke
ba3cbe7244
DATACMNS-57 - TypeDiscoverer now discovers generic constructor parameters correctly.
...
Fixed formatting for unit test as well.
2011-07-28 17:46:57 +02:00
Oliver Gierke
30de1d55b7
DATACMNS-56 - Tweak to algorithm of PreferredConstructorDiscoverer to pick up single argument-taking constructor.
2011-07-25 23:38:18 +02:00
Oliver Gierke
178b046f35
Removed obsolete imports in template.mf.
2011-07-25 23:03:54 +02:00
Oliver Gierke
2c538dbb15
DATACMNS-56 - PreferredConstructorDiscoverer does not throw an exception in case no preferred constructor is found.
2011-07-25 23:02:27 +02:00
Oliver Gierke
596a03c04c
DATACMNS-55 - TypeDiscoverer now handles types extending Collections and Maps as well.
2011-07-25 22:59:14 +02:00
trisberg
0232fdacbf
prepared for 1.2.0 snapshot builds
2011-07-21 13:13:00 -04:00
trisberg
3c3012db0d
prepared for Spring Data Commons 1.1.0.RELEASE
2011-07-21 11:46:48 -04:00
Thomas Risberg
1c323b4800
changed dependency on "querydsl-mongodb" with "querydsl-core"
2011-07-21 11:30:28 -04:00
Thomas Risberg
aa3c29c5a3
prepared for 1.1.0 snapshot builds
2011-07-19 11:50:52 -04:00
Thomas Risberg
1d52b05507
prepared for Spring Data Commons 1.1.0.RC1 release
2011-07-19 11:48:40 -04:00
Oliver Gierke
abfe323e75
Removed unused import.
2011-07-19 17:34:31 +02:00
Oliver Gierke
f8427258d3
DATACMNS-53 - Upgrade to Querydsl 2.2.0.
...
Updated Mysema APT plugin to 1.0.2. Added Mysema repository to parent pom to correctly find new versions.
2011-07-19 17:31:37 +02:00