I am coding a jax-rs webservice for a project. I use JPA in order to access the database. Now I want to split the webservice into front- and backend.
When I now create a select query and return an entity I want some properties that a frontend user must not see not to be included in the response, but I want those properties being sent when a request is being sent to the backend service.
Thanks for your help.