I have an entity managed in a database and a controller which offers some CRUD operations on this entity.
Some fields in the Entity should not be changeable by the frontend which consumes the REST API. I simply want to ignore the values of this unchangeable fields and use the values from the DB instead.
Until now i did this in a method of my controller, which was called before I did the further work with the entity. But this approach feels bad to me so I looked for other solutions.
What can I do to move this preprocessing out of my Controller?