my goal is to configure the objectMapper in the way that it only serialises element which are annotated with @JsonProperty.
objectMapper
@JsonProperty
In order to do
I found the solution now based on https://github.com/FasterXML/jackson-module-hibernate
I extended the object mapper and added the attributes in the inherited constructor.
Then the new object mapper is registered as a bean.