Commit Graph

39 Commits

Author SHA1 Message Date
Jon Brisbin
3aa8905b15 Added configuration property for domain type to repository mappings. Also improved the post-processing support, though I think there's still some room for tweaking. 2012-08-20 15:06:15 -05:00
Jon Brisbin
2000d07b32 Introduced a MethodParameterConversionService to help convert query parameters that might be annotated with specific converters. 2012-08-20 08:23:58 -05:00
Jon Brisbin
023ab6b885 Fix problem with the ConversionService not being sufficiently checked for converters when reading query parameters, requiring an alternative mechanism for doing parameter conversion. 2012-08-17 14:39:34 -05:00
Jon Brisbin
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. 2012-08-17 13:37:26 -05:00
Jon Brisbin
2dd0511f8f #28, #29: Support for nested objects as links in the JSON representation. 2012-08-17 08:46:25 -05:00
Jon Brisbin
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. 2012-08-15 14:31:57 -05:00
Jon Brisbin
3393780e65 DATAREST-37: Display entities inline when accessing relationship links. 2012-08-13 09:32:42 -05:00
Jon Brisbin
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. 2012-08-07 17:05:43 -05:00
Jon Brisbin
81b5f29c1e Adding a test scenario for @MappedSuperclass, fixed a couple bugs w.r.t. generating links to entities. 2012-08-07 11:03:02 -05:00
Jon Brisbin
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. 2012-08-07 10:02:16 -05:00
Jon Brisbin
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... 2012-08-06 12:25:26 -05:00
Jon Brisbin
b73dafbb8b Adding javadoc comments. 2012-07-31 13:13:01 -05:00
Jon Brisbin
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. 2012-07-31 09:22:36 -05:00
Jon Brisbin
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. 2012-07-30 13:53:13 -05:00
Jon Brisbin
7f8abc5aa8 Big update. Bug fixes, code re-formatting, changing tests. 2012-07-26 13:31:34 -05:00
Jon Brisbin
93d40b396b Forgot to add an important file. doh! :/ 2012-07-23 17:09:30 -05:00
Jon Brisbin
014271d7db Make parameter names for sorting and paging and what repositories to export configurable. 2012-07-20 16:54:35 -05:00
Jon Brisbin
3b3814772f Bumped Spring version to 3.1.2 2012-07-20 16:54:34 -05:00
Jon Brisbin
7696c96580 Fixed bugs in standalone configuration to make it easier to integrate with existing MVC applications. 2012-06-25 11:29:03 -05:00
Jon Brisbin
3e2a79d329 Added wiki documentation on API usage from curl. Also fixed a couple bugs, tweaked how rels are generated in some links. 2012-06-13 09:23:58 -05:00
Jon Brisbin
6e0f9a4162 Fixed a failing test. 2012-05-09 10:00:19 -05:00
Jon Brisbin
e1e460e718 Added the ability to control the exporting of Repositories, query methods or entity fields by adding "exported = true|false" to the @RestResource annotation. 2012-05-09 09:47:52 -05:00
Jon Brisbin
e44506c4e0 Reorganize how configuration is loaded, add UUID/String Converters. 2012-05-07 10:26:27 -05:00
Jon Brisbin
61170d8b43 Javadoc updates. 2012-05-03 11:35:05 -05:00
Jon Brisbin
ab7b497d72 Tweaks to source code by taking out unnecessary casts, slight tweak to how validators are handled, added validation documentation for the wiki. 2012-05-03 09:10:32 -05:00
Jon Brisbin
749382dad7 Documentation on handling events. Also added support for Spring Data Commons 1.3.0.RC2, which has improved metadata handling. 2012-05-02 16:24:53 -05:00
Jon Brisbin
d549aaecee Tweaking query method support. 2012-05-02 11:09:27 -05:00
Jon Brisbin
1f589b40fd Tweaking build. 2012-05-01 10:45:43 -05:00
Jon Brisbin
39422bd5d6 Tweaked test 2012-05-01 10:02:28 -05:00
Jon Brisbin
1b2986228d Tweaks to tests. 2012-05-01 09:56:28 -05:00
Jon Brisbin
076bbf45d2 Fixed bug with id and version attributes being included in "embedded" attributes. 2012-05-01 09:50:56 -05:00
Jon Brisbin
393a3b56af Added query capability. 2012-05-01 09:32:32 -05:00
Jon Brisbin
d78126d018 Massive update that reworks the entire metadata system. 2012-04-30 16:13:11 -05:00
Jon Brisbin
4c0b4a8867 Add comment about Validators. 2012-04-26 14:17:22 -05:00
Jon Brisbin
2f0c20bd31 Added ValidatingRepositoryEventListener as a default bean so it's on all the time. 2012-04-26 13:53:53 -05:00
Jon Brisbin
7738b95b18 Changed name of "child" events to the more proper "link" events. 2012-04-26 13:10:57 -05:00
Jon Brisbin
fe9e485d81 Added ApplicationEvent handling and annotation-based extension mechanism. 2012-04-26 11:40:14 -05:00
Jon Brisbin
f91d91e9e4 Fixed a bug in dealing with PUT/update 2012-04-23 10:56:50 -05:00
Jon Brisbin
e49014542c Re-org submodules, add debug compiler options 2012-04-11 15:44:20 -05:00