Oliver Gierke
90c4b62428
DATAREST-93 - Removed compiler warnings.
...
Removed dependency on jMock.
2013-06-11 15:01:03 +02:00
Oliver Gierke
cb4056e351
DATAREST-94 - Removed dependency to Guava.
...
Introduced simple Function interface. Replaced usage of Multimap with Spring's MultiValueMap.
2013-06-05 22:13:00 +02:00
Oliver Gierke
8d0fc660ce
DATAREST-83 - Removed type level @RequestMapping annotations.
...
Removed type level @RequestMapping annotations to prevent Spring MVC from picking up the controllers in its default configuration.
2013-06-05 20:49:54 +02:00
Oliver Gierke
f1cf2d5069
DATAREST-83 - Controller classes aren't annotated with @Controller anymore.
...
This is to prevent a parallel Spring MVC setup from picking up the controller classes in addition to the custom RequestHandlerMapping we deploy.
Polished some compiler warnings on the way.
2013-06-05 17:38:34 +02:00
Jon Brisbin
ad2496374c
#92 Add special Resource subclass that is returned by listRepositories method so that ResourceProcessors can easily add links to it.
2013-04-25 15:08:33 -05:00
Jon Brisbin
d74dde316d
Tweaks to the way resources are returned.
2013-04-25 15:08:33 -05:00
Jon Brisbin
5e52dd0aa1
Fix for NPE when returning a subclass for Resource
2013-04-25 15:08:32 -05:00
Jon Brisbin
94bd20f39f
Tweaks to the way resources are returned.
2013-04-25 15:08:32 -05:00
Jon Brisbin
467966ef63
Primarily formatting changes.
2013-04-25 15:08:32 -05:00
Jon Brisbin
2d3ebe50ec
Fixing a bug with property reference deletion.
2013-04-03 00:09:54 +02:00
Jon Brisbin
9c81264d52
Added extra checks to make sure that query methods marked with @RestResource(exported=false) aren't accidentally exported anyway.
2013-03-26 14:00:25 -05:00
Jon Brisbin
34c94d1e92
Update tests.
2013-03-13 15:06:32 -05:00
Jon Brisbin
20d18bd8f2
Fix PagingAndSorting resolver to recognize property aliases from the configuration.
2013-03-13 15:06:14 -05:00
Jon Brisbin
c25d05e12e
Change the signature of a constructor.
2013-03-13 15:05:29 -05:00
Jon Brisbin
94328592f4
Add explicit transactional semantics to the deleteEntity method because of problems with Neo4J support.
2013-03-13 11:14:48 -05:00
Jon Brisbin
e0c34e1be6
Fix paging.
2013-03-12 13:37:07 -05:00
Jon Brisbin
34adf44c1f
Fix a bug where property mappings weren't being considered in sort parameter names.
2013-03-12 13:36:46 -05:00
Jon Brisbin
2d2a85e870
Took of @Transactional because it was causing problems in other parts of the codebase.
2013-03-12 10:27:04 -05:00
Jon Brisbin
cf275cb304
Fix a bug where paging information wasn't being displayed in the JSON.
2013-03-12 09:49:39 -05:00
Jon Brisbin
8b7340c6cc
#71 Added a default no-arg constructor to the helper servlet.
2013-03-07 10:32:21 -06:00
Jon Brisbin
cc1573cb39
Make the EntityManagerFactory handling in the JpaHelper a little more robust.
2013-03-06 16:05:22 -06:00
Jon Brisbin
93d3214115
DATAREST-67 Can now using Spring Data REST without having to have any JPA dependencies in the classpath. The JPA-specific interceptor that is being used has been moved into a support class that is only created if JPA is in the classpath.
2013-03-06 14:06:44 -06:00
Jon Brisbin
b814319994
Capture the case where a ResourceNotFoundException was in the cause of an IllegalArgumentException. This situation should result in a 404 not a 500 with an error message.
2013-03-06 11:27:05 -06:00
Jon Brisbin
1a7adc6461
Tweaks to ValidationExceptionHandler injection.
2013-03-06 10:34:24 -06:00
Jon Brisbin
0b34c81394
Changes to validation code to make javax.validation an optional dependency.
2013-03-06 10:20:44 -06:00
Jon Brisbin
4d8f009679
Fix for DATAREST-72. ResourceMapping.isExported() is now considered for displaying the link to the repository or when building the metadata for the request. Now sends back a 404 when a repository is not exported and an attempt to access it is made.
2013-03-06 08:42:20 -06:00
Jon Brisbin
5f21071a5e
Fix for #74 . Replace self link building with calls to EntityLinks instance.
2013-03-06 08:25:55 -06:00
Jon Brisbin
35a4846590
Remove JSONP support from the controllers in preference to a forthcoming JSONP Servlet Filter to implement the functionality on a wider scale.
2013-03-06 07:56:48 -06:00
Jon Brisbin
05f11a6cf9
Fix for #71 . Made validation messages more robust and synced them between the Spring Validator based validation and the JSR-303 validation annotations. The output differed before but is now consistent.
2013-03-05 14:05:53 -06:00
Jon Brisbin
810b2144c8
Added BeforeCreateEvent and AfterCreateEvent and needed changes to accommodate a Validator that might want to validate a new entity differently than it does one that's already been saved.
2013-03-05 12:29:08 -06:00
Jon Brisbin
afbf92bdad
Fix for DATAREST-69. Tweaked how RepositoryEntityLinks gets its default baseUri if none is set in the configuration.
2013-03-05 10:54:13 -06:00
Jon Brisbin
9e47346314
Fix for DATAREST-69. Now inject an EntityLinks into the controller and provide the RepositoryEntityLinks as a bean in the RepositoryRestMvcConfiguration.
2013-03-05 08:59:13 -06:00
Jon Brisbin
eaf88b18e3
Fix for DATAREST-71.
2013-03-05 07:41:14 -06:00
Jon Brisbin
3cc83ecf70
Fix deprecation warning.
2013-03-04 09:35:01 -06:00
Jon Brisbin
de80e462f4
Fix bugs found when using this with the RESTBucks application.
2013-03-02 11:54:57 -06:00
Jon Brisbin
cfcb097007
Fixes to get Spring Data REST to pass the TCK test suite.
2013-02-22 15:53:01 -06:00
Jon Brisbin
ec9f94aac4
Added unit test for ResourceProcessorHandlerMethodReturnValueHandler as well as fix from pull request #61
2013-02-19 08:41:29 -06:00
Jon Brisbin
3b600f9ba8
Updated ResourceProcessor framework to call configured RPs at the appropriate time.
2013-02-18 17:21:20 -06:00
Jon Brisbin
ef2b37f3e3
Fix for #60 . Added maxPageSize to the RepositoryRestConfiguration so the user can specify a maximum which can be specified as the limit parameter. If the user specifies a value that exceeds the maximum, the configured maximum will be used rather than the value specified as a query parameter.
2013-01-22 10:18:29 -06:00
Jon Brisbin
9f082f00fd
DATAREST-60 Only set the errback parameter if one is configured in the RepositoryRestConfiguration.
2013-01-22 10:02:20 -06: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
0aacc6d4d3
Fix for #47
2012-11-27 10:24:01 -06:00
Jon Brisbin
754ae21c4c
Merge branch 'master' of github.com:SpringSource/spring-data-rest
2012-11-05 09:26:04 -06:00
Oliver Gierke
9adcd01aa3
DATAREST-56 - RepositoryRestHandlerMapping now uses lowest precedence.
...
Invoke super constructor with Ordered.LOWEST_PRECEDENCE to allow custom controller implementations hook into the URI space managed by the RepositoryRestController.
2012-11-02 08:53:28 +01:00
Jon Brisbin
9dd9afb93f
Change AnnotatedHandlerRepositoryEventListener into a BeanPostProcessor which works better all around and processes every bean, looking for event handlers.
2012-10-29 10:24:30 -05:00
Jon Brisbin
334e079348
Fixed a bug where the repository rel wasn't being respected in linked property link lists.
2012-10-18 08:49:31 -04:00
Jon Brisbin
dfe8e24bdd
Cosmetic change.
2012-10-17 12:49:05 -04:00
Jon Brisbin
2fa177d9ec
Fix an NPE bug when serializing an entity with no ID.
2012-10-17 12:48:47 -04:00
Jon Brisbin
851ae50301
Tweaked how the version is exposed. It isn't by default so I added a check for @RestResource on the version attribute. If a path is set, the version is exported under that name.
2012-10-15 07:42:02 -04:00
Jon Brisbin
d526e073ba
Fix NPE.
2012-10-12 08:32:28 -05:00