545 Commits

Author SHA1 Message Date
Spring Buildmaster
d8a37cc354 DATACMNS-371 - Prepare next development iteration. 2013-09-30 03:15:42 -07:00
Spring Buildmaster
8c3bde5f35 DATACMNS-371 - Release version 1.5.3.RELEASE. 2013-09-30 03:15:40 -07:00
Oliver Gierke
f239046283 DATACMNS-371 - Prepare 1.5.3 release.
Upgraded to Spring Data Build 1.0.5.
2013-09-30 12:07:15 +02:00
Oliver Gierke
70c35433f3 DATACMNS-362 - Resolved concurrency problem in Repositories.
We now create a copy of the keys before iterating over them in Repositories.getRepoInforFor(…) to make sure other threads can safely trigger lookupRepositoryFactoryInformationFor(…) which potentially alters the repositories instance variable. So far we haven't guarded against this scenario which caused a ConcurrentModificationException.
2013-08-26 18:30:53 +02:00
Oliver Gierke
54ffe8f167 DATACMNS-360 - Scanning for repository interfaces now considers active profiles.
The configuration entry points (RepositoryBeanDefinitionParser and RepositoryBeanDefinitionRegistrar) now hand the Environment they're running in forward into the infrastructure scanning for repositories. Thus it will correctly find or not find repository interfaces based on which profiles are activated or not.
2013-08-25 18:30:04 +02:00
Spring Buildmaster
e5e1e82eac DATACMNS-347 - Prepare next development iteration. 2013-07-19 04:06:51 -07:00
Spring Buildmaster
c067a43661 DATACMNS-347 - Release version 1.5.2.RELEASE. 2013-07-19 04:06:47 -07:00
Oliver Gierke
8a1777962b DATACMNS-347 - Upgraded to Spring Build 1.0.4.RELEASE.
Removed reference to snapshot repository.
2013-07-19 13:00:15 +02:00
Oliver Gierke
3b88e9631e DATACMNS-347 - Updated changelog. 2013-07-19 12:47:29 +02:00
Thomas Darimont
51aca33cc6 DATACMNS-345 - Use the actual type of the persistent property.
Changed getPersistentEntity(PersistentProperty<?>) to return the actual type of the persistent property in order to deal with collection and map types transparently.

Original pull request: #31.
2013-07-16 12:45:45 +02:00
Oliver Gierke
8eb6030fc0 DATACMNS-332 - Further performance improvements.
Reverted from ConcurrentHashMap to plain HashMap where concurrency wasn't an issue and profiling showed performance hotspots. Introduced caches for ParameterizedTypeInformation.getComponentType() and the resolved raw type in TypeDiscoverer.
2013-05-23 18:58:37 +02:00
Oliver Gierke
ea200c40b6 DATACMNS-332 - Cache AnnotationBasedPersistentProperty.isTransient(). 2013-05-23 10:55:05 +02:00
Oliver Gierke
1a7f253a64 DATACMNS-332 - AbstractMappingContext now prefers most concrete property.
BasicPersistentEntity now only caches the most concrete property for a by-name lookup to mimic the behavior that was implemented in getPersistentProperty(String name). This is to prevent shadowed properties of superclasses leaking into the by-name lookups.

Improved AbstractPersistentProperty.toString() to rather render the concrete field it is backed by.
2013-05-23 10:54:59 +02:00
Oliver Gierke
3a015a1547 DATACMNS-332 - Performance improvements in conversion subsystem hotspots.
Added caching to DefaultTypeMapper, SimpleTypeInformationMapper, BasicPersistentEntity and PreferredConstructor as these seem to be performance hotspots on the reading side of object conversion.
2013-05-17 14:00:01 +02:00
Oliver Gierke
f9b3f7340f DATACMNS-323 - PageImpl returns correct number of pages for use with content only.
So far, the PageImpl class returned 0 as total number of pages if set up from a plain List. This returns 1 now (as it should be). We've also adapted the hasNextPage() implementation to correctly calculate whether a next page is available.
2013-05-14 16:45:49 +02:00
Emanuele Blanco
5379a36a09 DATACMNS-328 - Fixed "fallbackPageable" typo in PageableArgumentResolver.
Pull request: #28.
2013-05-14 16:24:17 +02:00
Oliver Gierke
1996ed9630 DATACMNS-327 - AbstractMappingContext implements InitializingBean again.
This causes the configured persistent entities being added to the context on its initialization instead of a delayed initialization on ApplicationContext refreshed event.
2013-05-12 23:42:37 +02:00
Oliver Gierke
705db1420e DATACMNS-325 - RepositoryInterfaceAwareBeanPostProcess now implements PriorityOrdered.
This makes sure it is also applied in cases of dependency lookups for {{BeanPostProcessor}} implementation's dependencies.
2013-05-04 13:52:54 +02:00
Oliver Gierke
b1e73349b0 DATACMNS-325 - Open up lower boundary of Slf4j to 1.6.4 in MANIFEST.MF.
This change was introduced to ease the upgrade of STS to recent Spring Data Commons versions, originally introduced to enable Spring 4 compatibility (see DATACMNS-324).
2013-05-03 12:17:44 +02:00
Oliver Gierke
e74e39be22 DATACMNS-324 - Opened up template.mf version ranges for Spring 4.
The generated OSGi manifest now declares version ranges that allow usage of Spring 4.
2013-05-03 10:08:12 +02:00
Oliver Gierke
01dc42d19b DATACMNS-320 - Be less restrictive in finding mapping ambiguities.
So far we threw exceptions in case we find the same exception on getters *and* setters. We now allow this scenario in case the annotations are semantically equivalent.
2013-04-25 15:16:49 +02:00
Oliver Gierke
3cb46f02f3 DATACMNS-319 - Made Repositories less greedy in looking up beans.
We now don't try to eagerly lookup the beans Repositories shall capture in the constructor anymore but leniently look them up on the first request. Update tests for classes using Repositories alongside.
2013-04-25 12:29:47 +02:00
Spring Buildmaster
6396c38b7d DATACMNS-131 - Prepare next development iteration. 2013-04-16 03:13:44 -07:00
Spring Buildmaster
696a14e3ab DATACMNS-131 - Release 1.5.1.RELEASE. 2013-04-16 03:13:41 -07:00
Oliver Gierke
47bd9278c0 DATACMNS-131 - Prepare 1.3.1.RELEASE.
Updated changelog, notice and readme.
2013-04-16 11:45:38 +02:00
Oliver Gierke
913cb9dc4f DATACMNS-131 - Upgrade to Spring Data Build 1.0.3.RELEASE. 2013-04-16 11:34:26 +02:00
Oliver Gierke
5c5d0bd6d4 DATACMNS-131 - Some pom work before the release.
Upgrade to Spring Data build 1.0.3.BUILD-SNAPSHOT. Declare Spring WebMVC dependency to make sure Spring libs are pulled in consistently.
2013-04-16 11:12:35 +02:00
Oliver Gierke
3036800b9b DATACMNS-311 - TypeDiscoverer now also finds properties in type hierarchy.
We now also inspect the entire type hierarchy to lookup a property descriptor to inspect for read methods in case no field is found for a property.
2013-04-12 16:48:46 +02:00
Oliver Gierke
56b63a7a59 DATAJPA-324 - Test case to show property lookup on interface methods work. 2013-04-05 20:54:13 +02:00
Oliver Gierke
be53e9147e DATACMNS-309 - Fixed lookup of nested properties on TypeDiscoverer.
So far the property lookup of a nested property path (e.g. "foo.bar") failed in cases the head property was not cached already. We now recursively resolve the type information even for an unpopulated cache.
2013-04-05 20:51:48 +02:00
Oliver Gierke
6904f74eb6 DATACMNS-306 - RepositoryBeanDefinitionBuilder not correctly sets source.
Previously, the RepositoryBeanDefinitionBuilder did not forward the repository configuration's source instance into the built BeanDefinitions. This is now fixed to enable STS track the origin of the BeanDefinition back to the configuration source (an @Enable-annotation or an XML namespace element).
2013-03-28 18:55:06 +01:00
Oliver Gierke
451605c1b4 DATACMNS-305 - Added toString() methods to PersistentProperty implementations. 2013-03-28 15:53:00 +01:00
Johannes Mockenhaupt
1968a069a9 DATACMNS-300 - Fixed exception handling in ReflectionEntityInstantiator.
ReflectionEntityInstantiator now actually throws the wrapped exception created in the catch block handling BeanInstantiationExceptions.

Pull request: #25.
2013-03-25 13:49:39 +01:00
Oliver Gierke
6b90d83971 DATACMNS-291 - Fixed typo in JavaDoc of CrudRepository. 2013-02-27 14:49:09 +01:00
Oliver Gierke
4b18c7e3a4 DATACMNS-287 - Added missing package-info.java files. 2013-02-19 13:28:34 +01:00
Oliver Gierke
935b2d8999 DATACMNS-285 - Polished template.mf.
Use Bundlor property replacement in favor of hard coded versions to automatically pick up more dependency upgrades automatically.
2013-02-19 13:28:21 +01:00
Oliver Gierke
e5b976981c DATACMNS-289 - Upgraded to Spring Data Build 1.0.2.RELEASE. 2013-02-19 13:27:57 +01:00
Oliver Gierke
aa9369d5ee DATACMNS-283 - MappingInstantiationException captures more context now.
If an exception occurs in ReflectionEntityInstantiator we now capture more context about the failed instantiation.
2013-02-19 13:11:23 +01:00
Oliver Gierke
48e1bbbf7e DATACMNS-282 - Improved caching in AnnotationBasedPersistentProperty.
AnnotationBasedPersistentProperty now caches direct annotations on construction but still tries to lookup an annotation as meta-annotation if not found in cache on later requests. Extended try/catch block in AbstractMappingContext.addPersistentEntity(…) to invalidate cache on exceptions during property creation as well.
2013-02-11 16:03:27 +01:00
Spring Buildmaster
be0acb66e3 DATACMNS-279 - Prepare next development iteration. 2013-02-08 13:39:34 +01:00
Spring Buildmaster
a8c582d99a DATACMNS-279 - Release version 1.5.0.RELEASE. 2013-02-07 05:10:49 -08:00
Oliver Gierke
9de9217069 DATACMNS-279 - Upgraded to Spring Data parent pom in 1.0.0.RELEASE. 2013-02-07 14:05:02 +01:00
Oliver Gierke
1564704f0c DATACMNS-279 - Prepare release of version 1.5.0. 2013-02-07 13:53:47 +01:00
Oliver Gierke
680ac315b7 Added Eclipse code formatter. 2013-02-07 13:26:04 +01:00
Oliver Gierke
80b6dd2217 DATACMNS-278 - Added Converter implementations for JodaTime types.
Upgraded to JodaTime 2.1 based on super pom property definition.
2013-02-06 17:49:24 +01:00
Oliver Gierke
e79035cb42 DATACMNS-277 - Added general documentation on auditing. 2013-01-30 13:51:57 +01:00
Oliver Gierke
626c0ba38f DATACMNS-266 - Removed the obsolete ${schema.key}. 2013-01-29 19:43:14 +01:00
Oliver Gierke
45694c6ea9 DATACMNS-266 - Added necessary properties to enable distribution upload. 2013-01-29 19:15:07 +01:00
Oliver Gierke
3e40413ffe DATACMNS-275 - Introduced getObfuscatedPassword in UserCredentials. 2013-01-29 13:10:36 +01:00
Oliver Gierke
6b49eb4ca5 DATACMNS-276 - Added hashCode() to ParameterizedTypeInformation.
Implemented hashCode() to be as close as possible to the equals(…) implementation.
2013-01-29 13:07:44 +01:00