Is there an easy way to maintain jsonview with spring data over jpa

I am currently using the latest spring dataset for jpa to generate a HATEOS based HAP for my security layer that we provide to external clients. The solution works well, but there is a way where, based on roles, I can restrict access to fields based on the user. I was wondering if we can use @JsonView with spring data remainder as we do with spring mvc via @ResponseView. But is there any way or to do the same in spring datastores to give me api role access.

+3


source to share





All Articles