Open bjconlan opened 11 years ago
We currently support only CrudRepository
because that's what the Repositories
implementation in spring-data-commons
supports. [1]
Once we can handle all repository types in that class, then Spring Data REST can begin to support non-CrudRepository repositories.
/cc @olivergierke
Although it is possible to disable the CUD parts of the CRUDRepsoitory by adding @exported(false) to overloaded methods of the CRUDRepository i think it would be nicer to see either:
The Introduction to a read only repository in the spring-data-commons ie:
Which can be used as the decoration point when using spring-data-rest-webmvc instead of CRUDRepository (although I imagine a CRUDRepository would inherit from such a class)
or
Have the spring-data-rest-webmvc decorate any Repository based interface and follow some sort of expected method signatures for providing the appropriate Get/Put/Post/Patch/Delete REST operations.