New RepositoryRestResource Annotaion for Entity Class [DATAREST-1255] #1618
Labels
in: repository
status: declined
A suggestion or change that we don't feel we should currently apply
type: enhancement
A general enhancement
Michael Reed opened DATAREST-1255 and commented
A new annotation for a model/entity/data class which cuts down on boilerplate.
Currently if you are creating a quick simple
@RepositoryRestResource
interface and you for go defining any specific signatures, you end up with a lot of empty interfaces with repeated code.To cut down on the boilerplate for such instances it would be nice to just add the
@RepositoryRestResource
(or a new annotation) to the actual model/entity/data class. This annotation would effectively be generating the same code the current@RepositoryRestResource
is generating today, but without the need for nearly empty interfaces.It may require an additional parameter for the type of repository that you are looking to create as well. ex. PagingAndSortingRepository vs. any other repository.
No further details from DATAREST-1255
The text was updated successfully, but these errors were encountered: