Commit Graph

11 Commits

Author SHA1 Message Date
Oliver Gierke
5584040e92 DATAREST-93 - Removed Gradle wrapper script customizations. 2013-12-19 17:04:36 +01:00
Oliver Gierke
af520871dc DATAREST-203, DATAREST-75 - Initial support for HAL.
This commit introduces support for HAL rendering and making it the default rendering option. The configuration now registers an additional MappingJackson2HttpMessageConverter with the according HAL modules registered and makes this the default JSON renderer if the default media type is configured to HAL (which it is by default). To change this, set RepositoryRestConfiguration.setDefaultMediaType(…) back to application/json.

Refactored the PersistentEntityJackson2Module to turn the PersistentEntityResource into it's correct shape (turning associations into links) and the delegate to the default rendering, so that the HAL customizations provided by Spring HATEOAS can kick in. Adapted test cases to the change in default representation format.


Upgraded to Jackson 2.3.0, Spring 3.2.6 and Spring HATEOAS 0.9.0.BUILD-SNAPSHOT. Upgraded to Gradle 1.10.
2013-12-19 16:31:29 +01:00
Oliver Gierke
f965363650 DATAREST-93 - Upgraded to Gradle wrapper 1.8. 2013-11-14 10:04:28 +00:00
Oliver Gierke
5d07864714 DATAREST-93 - Pulled in current Gradle wrapper in 1.6. 2013-06-11 15:01:13 +02:00
Jon Brisbin
80202207ee Updated to Gradle 1.4 2013-03-13 15:52:19 -05:00
Jon Brisbin
6e4e7da142 Incorporated recent changes to Spring Data Commons and dependent projects that obsoleted the need to manage domain object metadata within Spring Data REST. Required updating to the latest snapshots available for spring-data-commons and spring-data-jpa.
Additional changes include:

* Re-wrote the monolithic Controller into separate controller classes that have a more narrow focus.
* Implemented common functionality as a `HandlerMethodArgumentResolver` rather than as a helper method in a controller class.
* Re-implemented JSONP functionality as an HttpMessageConverter rather than inline within a controller class.
* Updated to Jackson 2 for all JSON handling.
* By relying on spring-data-commons, spring-data-rest now handles all supported Repository types: JPA, MongoDB, and GemFire.

Added support for MongoDB and GemFire repositories by relying on spring-data-commons to provide the metadata rather than maintaining internal metadata information that is store-specific.

Replaced Spock spec tests with JMock unit and integration tests. Started integrating Jetty 8 into the testing so MVC testing can be done against a live server.
2013-01-18 10:14:29 -06:00
Jon Brisbin
6a28da79c3 Updated to Gradle 1.1 2012-08-15 14:24:44 -05:00
Jon Brisbin
b69675f401 Updated to Gradle 1.0 release. 2012-06-22 12:13:57 -05:00
Jon Brisbin
d78126d018 Massive update that reworks the entire metadata system. 2012-04-30 16:13:11 -05:00
Jon Brisbin
7f907c75cc Renamed mvc package, fix bug in tests. 2012-03-27 09:36:43 -05:00
Jon Brisbin
3dc5495357 Initial commit 2012-03-08 15:57:24 -06:00