135 Commits

Author SHA1 Message Date
Oliver Gierke
2f233effae DATACMNS-522 - After release cleanups. 2014-06-18 14:36:37 +02:00
Spring Buildmaster
6186e36b74 DATACMNS-522 - Prepare next development iteration. 2014-06-18 02:43:36 -07:00
Spring Buildmaster
f9166f7cf9 DATACMNS-522 - Release version 1.7.3.RELEASE (Codd SR3). 2014-06-18 02:43:30 -07:00
Oliver Gierke
a483bd02cf DATACMNS-522 - Prepare 1.7.3.RELEASE (Codd SR3). 2014-06-18 11:37:58 +02:00
Oliver Gierke
2a1e71204d DATACMNS-522 - Upgraded to Spring HATEAOAS 0.13.0.RELEASE. 2014-06-18 10:46:09 +02:00
Oliver Gierke
c9c7a5309c DATACMNS-513 - PagedResourcesAssemblerArgumentResolver now correctly resolves mappings for sub-class invocations.
We're now using the newly introduced method on ControllerLinkBuilderFactory that takes both a type and a method to forward the method the invocation is happening on independently from the method being invoked.
2014-06-05 17:15:55 +02:00
Spring Buildmaster
05224796ee DATACMNS-488 - Prepare next development iteration. 2014-04-15 14:12:02 +02:00
Spring Buildmaster
5701ca4df0 DATACMNS-488 - Release version 1.7.2.RELEASE (Codd SR2). 2014-04-15 05:07:55 -07:00
Oliver Gierke
102a73b925 DATACMNS-488 - Prepare 1.7.2.RELEASE (Codd SR2).
Upgraded to Spring Data Build 1.3.2.RELEASE, switched to release repository and updated changelog, notice and readme.
2014-04-15 14:02:58 +02:00
Oliver Gierke
3982e80f90 DATACMNS-478 - Allow build to be run on Java 8.
Introduced XmlUnit to make sure we can test XML rendering Java 6, 7 and 8.
2014-04-15 09:47:37 +02:00
Spring Buildmaster
e2c4fb9ca8 DATACMNS-449 - Prepare next development iteration. 2014-03-13 09:44:35 +01:00
Spring Buildmaster
ce114422be DATACMNS-449 - Release 1.7.1.RELEASE (Codd SR1). 2014-03-13 01:40:41 -07:00
Christoph Strobl
f14f3fd0c3 DATACMNS-449 - Prepare 1.7.1.RELEASE (Codd SR1).
Update pom.xml to use Spring Data Build parent in 1.3.1.RELEASE as well as the release repository. Update changelog to reflect recent changes / releases. Update notice. Update links in readme to point to spring.io.

Original Pull Request: #74.
2014-03-13 09:36:39 +01:00
Spring Buildmaster
7e99eaaf01 DATACMNS-443 - Prepare next development iteration. 2014-02-24 14:01:52 +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