Why are my values of the map "states" not stored in the database? It seems the 'State' is stored, but not the 'Authority'?
@Entity public class Ticket {@Id @GeneratedValue private long id;@OneToMany(fetch = FetchType.EAGER, cascade=CascadeType.ALL, mappedBy = "ticket", orphanRemoval=true) @MapKeyEnumerated(EnumType.STRING) private Map<State, Authority> states = new HashMap<State, Authority>();}@Entity public class Authority { @Id @GeneratedValue private long id;private LocalDateTime dateTime = null;@ManyToOne(fetch = FetchType.EAGER) private Ticket ticket = null;[...]}public enum State {OPEN("Offen"), CLOSED("Geschlossen");[...]}
