023ab6b885
Fix problem with the ConversionService not being sufficiently checked for converters when reading query parameters, requiring an alternative mechanism for doing parameter conversion.
Jon Brisbin
2012-08-17 14:39:34 -05:00
b9b6a8fe92
DATAREST-39: Modified the DELETEing of links so that an attempt to delete a required relationship will result in a 405 Method Not Allowed. Had to change the entities and tests to accommodate the new required relationship on the Address entity, which pingponged into a number of changes.
Jon Brisbin
2012-08-17 13:37:26 -05:00
2dd0511f8f#28, #29: Support for nested objects as links in the JSON representation.
Jon Brisbin
2012-08-17 08:46:25 -05:00
3da1a241e0
DATAREST-38: Adding self link to related entity representation in addition to providing the Content-Location header.
Jon Brisbin
2012-08-16 07:59:58 -05:00
524eaa07fc
Documentation updates.
Jon Brisbin
2012-08-16 07:57:39 -05:00
d7e2e53ce2
Implemented a new style of JSON serialization and deserialization by registering Repository-aware components with Jackson's underlying ObjectMapper. This has the benefit of allowing us to transliterate domain objects into link representations and back again, no matter where those entities appear in complex nested object graphs.
Jon Brisbin
2012-08-15 14:31:57 -05:00
d2c6ecacc5
Tweaking fluent bean utils by adding fallback to Field access.
Jon Brisbin
2012-08-15 14:28:23 -05:00
6a28da79c3
Updated to Gradle 1.1
Jon Brisbin
2012-08-15 14:24:44 -05:00
3393780e65
DATAREST-37: Display entities inline when accessing relationship links.
Jon Brisbin
2012-08-13 09:31:55 -05:00
17c97eb423
Merge pull request #26 from ericbottard/patch-1
J. Brisbin
2012-08-08 06:37:08 -07:00
ca1115f5fc
Broken link in README
Eric Bottard
2012-08-08 11:12:51 +03:00
4abd842a86
Added an annotation for doing parameter conversion @ConvertWith. You can now specify a Spring Core Converter class to use to convert the query parameter String[] values coming in on the query string to the type needed in the query method parameter.
Jon Brisbin
2012-08-07 17:05:43 -05:00
42c86af9a2
Fixed a couple failing tests.
Jon Brisbin
2012-08-07 11:07:20 -05:00
81b5f29c1e
Adding a test scenario for @MappedSuperclass, fixed a couple bugs w.r.t. generating links to entities.
Jon Brisbin
2012-08-07 11:03:02 -05:00
e6de869935
Updated wiki docs about event handling for render events.
Jon Brisbin
2012-08-07 11:02:23 -05:00
88fc8ba7cd
Added event handling machinery to intercept render events. It's now possible to write and event handler to influence the resource objects that are being sent to the client. There is an abstract helper class and there is support for annotated POJOs.
Jon Brisbin
2012-08-07 10:02:16 -05:00
f3dde0c144
Fixed failing test due to changing the key name in the root-level object, removed the serialVersionUID compile flag.
Jon Brisbin
2012-08-06 14:40:32 -05:00
7775af8be4
Changing the representation to be more consistent in key naming (breaking change). Also starting work on the ability to "enrich" a representation with e.g. more links to other resources, etc...
Jon Brisbin
2012-08-06 12:25:26 -05:00
bd24e582fd
Updated wiki documentation.
Jon Brisbin
2012-08-01 13:22:26 -05:00
27f154347c
Release version 1.0.0.RC2
1.0.0.RC2
Spring Buildmaster
2012-07-31 11:54:48 -07:00
b73dafbb8b
Adding javadoc comments.
Jon Brisbin
2012-07-31 13:13:01 -05:00
38a3ffd376
Added ConversionFailedException to the list of 400 Bad Request throwables.
Jon Brisbin
2012-07-31 10:25:49 -05:00
bf9c719950
Fixed a bug where complex query method parameters that aren't managed by repositories were causing the parameter processing to short-circuit to a 404 error. Replaced that method call with a different one that simple returns a boolean if a type is managed by a repository so the if/else chain can continue on to the ConversionService.
Jon Brisbin
2012-07-31 09:22:36 -05:00
b681844258
Added missing exception resolver configuration to turn exceptions into meaningful HTTP codes as well as provide sane serialization of exception stacktraces.
Jon Brisbin
2012-07-30 15:17:37 -05:00
3a8969e55f
Trying to fix build failures due to strange transaction issues not experienced in local builds.
Jon Brisbin
2012-07-30 14:30:57 -05:00
aa8e5a123f
Trying to fix build failures due to strange transaction issues not experienced in local builds.
Jon Brisbin
2012-07-30 14:28:54 -05:00
7bc2b0cb97
Added transactional awareness to the tests to ensure they pass.
Jon Brisbin
2012-07-30 14:23:00 -05:00
2f6650c846
Added before/after link delete events and fixed a bug with deleting links where the updated entity was never saved back to the DB.
Jon Brisbin
2012-07-30 13:53:13 -05:00
1cb9307b1c
Added notNull assertions to the configuration class to prevent bad configurations from blowing up the exporter.
Jon Brisbin
2012-07-30 08:56:12 -05:00
300c06f640
Changed servlet 3.0 dependency to provided.
Jon Brisbin
2012-07-27 14:12:28 -05:00
f71b25b49c
Previous configuration caused a WAR to be built. Had to take that out of the gradle build so it would look properly like a Java project again.
Jon Brisbin
2012-07-27 10:02:04 -05:00
6be6de34d3
Fixing and adding tests.
Jon Brisbin
2012-07-27 09:40:50 -05:00
7f8abc5aa8
Big update. Bug fixes, code re-formatting, changing tests.
Jon Brisbin
2012-07-26 13:31:33 -05:00
6867d07295
DATAREST-23 Fix NPE when result of query is null.
Jon Brisbin
2012-07-24 08:26:34 -05:00
93d40b396b
Forgot to add an important file. doh! :/
Jon Brisbin
2012-07-23 17:09:30 -05:00
f969f92acc#18, DATAREST-20, DATAREST-21, DATAREST-22 Bugfixes, re-vamp output method, JSONPE support
Jon Brisbin
2012-07-23 17:08:10 -05:00
014271d7db
Make parameter names for sorting and paging and what repositories to export configurable.
Jon Brisbin
2012-07-20 16:42:53 -05:00
7bb48e3eb9
Bumped Spring version to 3.1.2
Jon Brisbin
2012-07-20 16:35:24 -05:00
3b3814772f
Bumped Spring version to 3.1.2
Jon Brisbin
2012-07-20 16:35:03 -05:00
6d8e960811
[artifactory-release] Release version 1.0.0.RC1
1.0.0.RC1
Spring Buildmaster
2012-06-26 11:43:58 -07:00
395101497f
Added documentation on how to integrate Spring Data REST with an existing Spring MVC application. Renamed a couple components to keep them consistent with the others.
Jon Brisbin
2012-06-26 13:28:45 -05:00
b3290c190c
Changed how handler mappings work in Spring Data REST so that only paths that have Repositories exported on them are recognized by the controller.
Jon Brisbin
2012-06-26 11:24:52 -05:00
ebd50e96e7
Added script to load lots of random names pulled from a spreadsheet based on the 1990 Census.
Jon Brisbin
2012-06-26 11:19:58 -05:00
5ea1cdcf24
Added documentation on paging and sorting.
Jon Brisbin
2012-06-25 11:58:29 -05:00
da332dcd31
Merge branch 'master' of github.com:SpringSource/spring-data-rest
Jon Brisbin
2012-06-25 11:31:15 -05:00
7696c96580
Fixed bugs in standalone configuration to make it easier to integrate with existing MVC applications.
Jon Brisbin
2012-06-25 11:29:03 -05:00
902050633e
Merge pull request #16 from rstoyanchev/master
J. Brisbin
2012-06-25 06:11:38 -07:00
25b8813604
Change configuration to make it easier to integrate with an existing Spring MVC application by implementing special MVC mapping and HanndlerAdapter beans that only recognize Spring Data REST components.
Jon Brisbin
2012-06-22 12:15:25 -05:00
0a05216b18
Change default page size to 20.
Jon Brisbin
2012-06-22 12:14:25 -05:00
b69675f401
Updated to Gradle 1.0 release.
Jon Brisbin
2012-06-22 12:13:57 -05:00
079661d19e
Added support for paging and sorting.
Jon Brisbin
2012-06-18 15:31:23 -05:00
3e2a79d329
Added wiki documentation on API usage from curl. Also fixed a couple bugs, tweaked how rels are generated in some links.
Jon Brisbin
2012-06-13 09:23:58 -05:00
e0b3d84362
Forgot to add the new Entity to the JPA configuration for fix for #14.
Jon Brisbin
2012-05-23 10:32:37 -05:00
9fb07a0fe5
Fix for #14 where links in linked entities weren't being rendered correctly.
Jon Brisbin
2012-05-23 10:03:50 -05:00
987e386aba
Fix for #12. Was passing the parent's path information to the self link generator rather than the child's.
Jon Brisbin
2012-05-22 08:56:27 -05:00
3646d0fc67
Updated wiki to document accessing Repository query methods via HTTP.
Jon Brisbin
2012-05-16 16:35:21 -05:00
35e594019f
[artifactory-release] Release version 1.0.0.M2
1.0.0.M2
Spring Buildmaster
2012-05-16 12:16:02 -07:00
51a6728408
Updated dependencies to Spring Data JPA 1.1.0.RELEASE and Spring Data Commons 1.3.0.RELEASE
Jon Brisbin
2012-05-16 14:07:23 -05:00
df8a8912cd
Changed the POST/create method to look for the query parameter "returnBody" and, if present and set to "true", return the entity in the body of the response. If it is not present or set to "false", then no content is returned in the body of the response, which is the current behaviour.
Jon Brisbin
2012-05-16 10:48:22 -05:00
75d90747f9
Merge remote-tracking branch 'origin/master'
Jon Brisbin
2012-05-15 12:03:59 -05:00
0b6175f005
Address #10 by changing the way views are selected.
Jon Brisbin
2012-05-15 12:03:31 -05:00
be762f989f
Merge pull request #9 from ptemplier/master
J. Brisbin
2012-05-14 09:38:49 -07:00
3a32c5bd1a
typo on 'instantiated'
ptemplier
2012-05-14 18:22:05 +03:00
d177cc7753
Fixed a bug in saving entities via PUT.
Jon Brisbin
2012-05-10 07:06:28 -05:00
27322ddcf9
Fixed a failing test.
Jon Brisbin
2012-05-09 10:02:17 -05:00
6e0f9a4162
Fixed a failing test.
Jon Brisbin
2012-05-09 10:00:19 -05:00
e1e460e718
Added the ability to control the exporting of Repositories, query methods or entity fields by adding "exported = true|false" to the @RestResource annotation.
Jon Brisbin
2012-05-09 09:47:52 -05:00
29c839f5c6Fix#8 by adding @EnableWebMvc et al to the Controller to ensure OpenEntityManagerInViewInterceptor is properly registered, as well as other Spring MVC helpers that are needed for things to work correctly.
Jon Brisbin
2012-05-08 15:38:59 -05:00
6c5bab7be3
Changed the way I look for ConversionServices to add to the default set of Converters by looking in the ApplicationContext rather than playing monkey games with @Configuration and @Autowired.
Jon Brisbin
2012-05-07 13:28:04 -05:00
e44506c4e0
Reorganize how configuration is loaded, add UUID/String Converters.
Jon Brisbin
2012-05-07 10:26:27 -05:00
61170d8b43
Javadoc updates.
Jon Brisbin
2012-05-03 11:35:05 -05:00
ab7b497d72
Tweaks to source code by taking out unnecessary casts, slight tweak to how validators are handled, added validation documentation for the wiki.
Jon Brisbin
2012-05-03 09:10:32 -05:00
09df01a0ad
Documented the configuration of URL path segments.
Jon Brisbin
2012-05-02 16:43:17 -05:00
749382dad7
Documentation on handling events. Also added support for Spring Data Commons 1.3.0.RC2, which has improved metadata handling.
Jon Brisbin
2012-05-02 16:24:53 -05:00
57861b5536
Had to add some EntityManagerFactory manipulation to the test to get it to work now that the AppliationContexts are loaded in a different way then they were before.
Jon Brisbin
2012-05-02 11:22:57 -05:00
d549aaecee
Tweaking query method support.
Jon Brisbin
2012-05-02 11:09:27 -05:00
b2564ceeca
Tweaking build.
Jon Brisbin
2012-05-01 15:10:23 -05:00
1f589b40fd
Tweaking build.
Jon Brisbin
2012-05-01 10:45:43 -05:00
39422bd5d6
Tweaked test
Jon Brisbin
2012-05-01 10:02:28 -05:00
1b2986228d
Tweaks to tests.
Jon Brisbin
2012-05-01 09:56:28 -05:00
076bbf45d2
Fixed bug with id and version attributes being included in "embedded" attributes.
Jon Brisbin
2012-05-01 09:50:56 -05:00
28ed6fc57a
Tweaked rel generation.
Jon Brisbin
2012-05-01 09:42:30 -05:00
393a3b56af
Added query capability.
Jon Brisbin
2012-05-01 09:32:32 -05:00
d78126d018
Massive update that reworks the entire metadata system.
Jon Brisbin
2012-04-30 16:13:11 -05:00
077529e830
Added fuller comment(s) about Validators.
Jon Brisbin
2012-04-26 14:31:44 -05:00
4c0b4a8867
Add comment about Validators.
Jon Brisbin
2012-04-26 14:17:22 -05:00
2f0c20bd31
Added ValidatingRepositoryEventListener as a default bean so it's on all the time.
Jon Brisbin
2012-04-26 13:53:53 -05:00
7738b95b18
Changed name of "child" events to the more proper "link" events.
Jon Brisbin
2012-04-26 13:10:57 -05:00
fe9e485d81
Added ApplicationEvent handling and annotation-based extension mechanism.
Jon Brisbin
2012-04-26 11:40:14 -05:00
57caa05823
Tweaked build file to use different maven repos.
Jon Brisbin
2012-04-24 11:09:26 -05:00
4562989a34
Tweaked README.
Jon Brisbin
2012-04-24 10:53:51 -05:00