I've got an entity with the following signature:
public class Record extends BaseEntity<Long, Record> {...}
Now I want to send it via REST using JSON. Problem is, the self reference. Because of that I get the following error.
com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Direct self-reference leading to cycle (through reference chain: Record["this"])
What can I do, e.g. which annotation, to convert this object to JSON?