Commit Graph

122 Commits

Author SHA1 Message Date
Spring Buildmaster
b41e337569 DATACMNS-443 - Prepare next development iteration. 2014-02-25 07:46:38 +01:00
Spring Buildmaster
a9fb7070c8 DATACMNS-443 - Release version 1.7.0.RELEASE. 2014-02-24 04:46:40 -08:00
Oliver Gierke
91e693b9da DATACMNS-443 - Prepare 1.7.0.RELEASE. 2014-02-24 13:10:02 +01:00
Oliver Gierke
fa80df2fa0 DATACMNS-425 - Upgrade to Spring Data Build snapshots. 2014-02-03 14:31:11 +01:00
Spring Buildmaster
1a94ffa796 DATACMNS-425 - Prepare next development iteration. 2014-01-29 04:24:57 -08:00
Spring Buildmaster
e00763bc44 DATACMNS-425 - Release version 1.7.0.RC1. 2014-01-29 04:24:55 -08:00
Oliver Gierke
8fa19aa01e DATACMNS-425 - Prepare 1.7.0.RC1 release.
Upgraded to Spring Data Build parent 1.3.0.RC1 and Spring HATEOAS 0.9.0.RELEASE. Switched to milestone repositories. Updated changelog and adapted notice.txt.
2014-01-28 13:24:18 +01:00
Oliver Gierke
26c4f2dd87 DATACMNS-430 - Using Jackson version property from build parent.
Removed custom dependency from Spring 4 profile as it's already included in the parent pom.
2014-01-22 17:52:53 +01:00
Oliver Gierke
059d398480 DATACMNS-425 - Use new repository URLs and add repo for build plugins.
Removed test dependency as it's already declared in Spring Data Build parent POM.
2014-01-20 12:38:03 +01:00
Oliver Gierke
3fc927ceb8 DATACMNS-421 - Removed obsolete version declarations for Spring dependencies. 2014-01-19 15:37:44 +01:00
Oliver Gierke
92a22182f1 DATACMNS-418 - PagedResourcesAssembler now adds self links to PagedResources.
PagedResourcesAssembler now adds a LinkTemplate to every PagedResources instance created and pulls the template variable information from the registered resolvers for Pageable and Sort.

Extended PageableResourceAssemblerArgumentResolver to create a special MethodParameterAwarePagedResourcesAssembler so that the assembler will take qualifier information into account when being injected into controller methods.

Upgraded to Spring HATEOAS 0.9.0.BUILD-SNAPSHOT to be able to benefit from new methods added to MethodParameters as well as the LinkTemplate class. Updated Sonargraph architecture definition to allow the web layer to access logging.
2014-01-16 14:31:55 +01:00
Oliver Gierke
11f1207e4e DATACMNS-403 - Upgraded to snapshot versions of Spring Data build parent. 2013-12-12 15:40:23 +01:00
Spring Buildmaster
09b8989a7f DATACMNS-403 - Prepare next development iteration. 2013-11-19 03:53:05 -08:00
Spring Buildmaster
0abed479e7 DATACMNS-403 - Release version 1.7.0.M1. 2013-11-19 03:53:03 -08:00
Thomas Darimont
341912acec DATACMNS-403 - Prepare release 1.7 M1.
Updated release metadata and bumped versions.
2013-11-19 12:48:42 +01:00
Oliver Gierke
9b077890b4 DATACMNS-391 - Mitigate changes between Spring 3 and 4' GenericTypeResolver.
As of Spring 4, the GenericTypeResolver is more consistent in detecting raw types. It now returns null for both resolveTypeArguments(Set.class, Set.class) as well as resolveTypeArguments(Set.class, Iterable.class). The latter returns an array of Object.class in 3.x.

As this shouldn't make a pratical difference to actual clients (as they need to check for null anyway, we loosen the test case to be able to build Spring Data Commons against both Spring 3 and Spring 4.

Some polishing in the version detection in integration tests. Moved the Servlet 3.0 dependency into the Spring 4 profile.
2013-11-01 09:34:32 +00:00
Thomas Darimont
c34983b22b DATACMNS-391 - Ensure compatibility with Spring Framework 4.0.
Some tests required an explicit dependency to servlet-api-3.x.
The GenericApplicationContext doesn't refresh automatically in Spring 4.x we thus we have to call refresh manually. Added a specific version of populators.xml for Spring 4.x since the jaxb2-marshaller element definition no longer renamed the contextPath attribute to context-path in 4.x.

Original pull request: #52.
2013-11-01 09:30:34 +00:00
Oliver Gierke
1624fec11a DATACMNS-386 - Upgraded to Spring Framework 3.2.4.
Upgraded to Spring Data Build 1.3.0.BUILD-SNAPSHOT to benefit from upgrade to Spring 3.2.4.
2013-10-25 19:31:35 +02:00
Spring Buildmaster
0ce262e550 DATACMNS-315 - Prepare next development iteration. 2013-09-09 12:33:06 -07:00
Spring Buildmaster
f022ed57fb DATACMNS-315 - Release version 1.6.0.RELEASE. 2013-09-09 12:33:00 -07:00
Oliver Gierke
2136fa8cdf DATACMNS-315 - Prepare 1.6.0.RELEASE. 2013-09-09 12:27:13 -07:00
Oliver Gierke
77199cbec4 DATACMNS-358 - Test case for 1-index pages in PagedResourcesAssembler.
Added a test case to show that PagedResourcesAssembler correctly renders 1-indexed, empty pages after upgrading to Spring HATEOAS 0.8.0.BUILD-SNAPSHOT.
2013-08-26 18:30:34 +02:00
Nick Williams
eb4b801dc9 DATACMNS-353 - Make Spring HATEOAS purely optional.
Extracted the implementation of UriComponentsContributor from PageableHandlerMethoArgumentResolver and SortHandlerMethodArgumentResolver into dedicated subclasses so that we can really make Spring HATEOAS an optional dependency.

The integration tests are now guarded with an assumption to run on Spring 3.2 as Spring 3.1 has issues with JavaConfig and configuration method overrides. We've upgraded to Spring Data Build 1.2 snapshots so that the tests can be run with -Pspring32. This effectively means that the Spring Data Web support can only be used with a current Spring 3.2. Added a note on that in the reference docs and JavaDoc of @EnableSpringDataWebSupport.

Original pull request: #39.
2013-08-22 08:14:58 +02:00
Oliver Gierke
600a268adf DATACMNS-314 - Polished indentation in pom.xml. 2013-08-08 15:57:22 +02:00
Spring Buildmaster
409b1f6008 DATACMNS-314 - Prepare next development iteration. 2013-08-01 07:51:16 -07:00
Spring Buildmaster
c27b8cdce8 DATACMNS-314 - Release version 1.6.0.RC1. 2013-08-01 07:51:11 -07:00
Oliver Gierke
f502c1fece DATACMNS-314 - Prepare 1.6.0.RC1 release.
Updated changelog, notice and readme. Upgraded to Spring Data Build parent 1.1.1.RELEASE.
2013-08-01 16:47:34 +02:00
Spring Buildmaster
2195e31493 DATACMNS-313 - Prepare next development iteration. 2013-05-31 10:14:33 -07:00
Spring Buildmaster
9702a4a409 DATACMNS-313 - Release version 1.6.0.M1. 2013-05-31 10:14:28 -07:00
Oliver Gierke
a7dfb9c27c DATACMNS-313 - Prepare 1.6.0.M1 release.
Upgraded to Spring Data Build 1.1.0.RELEASE, upgraded to Spring HATEOAS 0.6.0.RELEASE. Updated changelog.
2013-05-31 19:04:54 +02:00
Oliver Gierke
110b7836e1 DATACMNS-334 - Use newly introduced ${apt} placeholder for APT plugin version. 2013-05-29 17:55:25 +02:00
Oliver Gierke
e0dda2a4f0 DATACMNS-333 - Added Jackson 2 support to repository populators.
Added necessary infrastructure to use Jackson 2 with repository populators. Expose a jackson2-populator XML element in the namespace to setup a Jackson2 based repository populator.
2013-05-29 17:51:39 +02:00
Oliver Gierke
a93c2bff94 DATACMNS-330, DATACMNS-331 - Advanced web integration.
Added PagedResourcesAssembler to easily convert Page instances into a PagedResource instance and automatically build the required previous/next links based on the PageableHandlerMethodArgumentResolver present in the MVC configuration. The assembler can either be injected into a Spring MVC controller or a controller method. The latter will then assume the controller methods URI to be used as pagination link base.

Added @EnableSpringDataWebSupport to automatically register HandlerMethodArgumentResolvers for Pageable and Sort as well as a DomainClassConverter that will allow the usage of domain types being managed by Spring Data repositories in controller method signatures. In case Spring HATEOAS is present on the classpath, we'll also register a PagedResourcesAssembler for injection as well as the appropriate HandlerMethodArgumentResolver for injection into controller methods.

Adapted Sonargraph configuration accordingly. Upgraded to Spring HATEOAS 0.6.0.BUILD-SNAPSHOT.
2013-05-15 16:03:46 +02:00
Oliver Gierke
c69330b0ee DATACMNS-301 - Upgraded to Querydsl 3.0.0.
Removed explicit version declaration and inherit it from the current snapshots of the parent build (see https://github.com/SpringSource/spring-data-build/issues/5). Upgraded to version 1.0.8 of the APT plugin as well.
2013-03-25 17:41:05 +01:00
Oliver Gierke
9e82377c15 DATACMNS-289 - Upgraded to Spring Data Build 1.0.2.RELEASE. 2013-02-19 13:28:54 +01:00
Oliver Gierke
e11efede4d DATACMNS-236, DATACMNS-117 - Added (Pageable|Sort)HanderMethodArgumentResolvers.
Added HandlerMethodArgumentResolver implementations for Pageable and Sort exposing a new default set of properties (page, size, sort) to resolve pagination and sorting information from the request. To mimic the legacy behavior we expose a (deprecated) LEGACY constant in PageableHandlerMethodArgumentResolver. Clients should move to the new properties structure ASAP. Added unit tests to verify old and new defaulting behavior.

Introduced new annotations @SortDefault (with @SortDefaults wrapper annotation) and @PageableDefault (superseding the legacy @PageableDefaults). The new annotations have more speaking attribute names and the HMAR implementations transparently alias the generic value attribute into a more semantic one (size).

The HMAR implementations implement Spring HATEOAS' UriComponentsContributor to be able to turn Pageable / Sort instances back into URIs created through the MethodLinkBuilderFactory API in Spring HATEOAS.

Extracted common API between legacy PageableArgumentResolver and PageableHandlerMethodArgumentResolver into common helper class.
Upgraded to Spring Hateoas 0.5.0.BUILD-SNAPSHOT.
2013-02-19 13:09:40 +01:00
Spring Buildmaster
0bbe56740b DATACMNS-279 - Prepare next development iteration. 2013-02-07 05:10:53 -08: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
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
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
06497a6814 DATACMNS-273 - Upgraded to Spring HATEOAS 0.4.0.RELEASE. 2013-01-28 16:27:01 +01:00
Oliver Gierke
d972e984fe DATACMNS-266 - Refer to deployment repository to get unfiltered pom. 2013-01-18 14:43:47 +01:00
Oliver Gierke
2eba53619e DATACMNS-266 - Re-added repository declarations to pom.xml.
For some reasons the <repository /> and <pluginRepository /> elements get stripped from the Spring Data parent pom during the deployment onto Artifactory so they do not end up in the pom.xml published although defined in the source pom.xml.
2013-01-16 17:31:38 +01:00
Oliver Gierke
ac256f9921 DATACMNS-266 - Use new common Maven build infrastructure.
Simplified project setup to be a single module build again. Using Spring Data Build parent POM to simplify project setup. See https://github.com/SpringSource/spring-data-build#spring-data-build-infrastructure
2013-01-16 15:15:24 +01:00
Spring Buildmaster
075e31d917 DATACMNS-192 - Prepare next development iteration. 2012-10-09 05:31:15 -07:00
Spring Buildmaster
18c1392e96 DATACMNS-192 - Release version 1.4.0.RELEASE. 2012-10-09 05:31:11 -07: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