Lets say I have models Configuration and User.
In Configuration I specify relation to User like this:
@ManyToOne(fetch = FetchType.EAGER)
@JoinColumn(name= "user")
private User author;
And then when I want all configuration per specific user I get something like this:
{"id":1,"key":"Layout","value":"boxed","author":{"id":1,"name":"Roy","login":"roy","password":"spring"}}
How can I protect