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
java spring spring-data-jpa spring-data-rest spring-mvc


source to share


No one has answered this question yet

See similar questions:

17
Spring Data Persistence: Security Based Prediction
nine
Spring 3.2: Filtering Jackson JSON Output Based on Spring Security Role

or similar:

2480
How do I send JSON data using Curl from terminal / command line to Test Spring REST?
565
What is the difference between CrudRepository and JpaRepository interfaces in Spring Data JPA?
95
Spring Data-JPA vs JPA: What's the Difference?
91
How to set base rest url in spring boot?
61
DAO and Service tiers (JPA / Hibernate + Spring)
42
Injecting custom Spring Data Repository methods and viewing them via REST
31
How to mix spring-data-rest with spring websocket in one implementation
ten
Custom jpa repository method posted by spring-data-rest
4
Spring DATA JPA and REST repository in separate bundled modules (Spring Boot)
1
how to inject etag headers and versions with spring data remainder abstraction



All Articles
Loading...
X
Show
Funny
Dev
Pics