We have a entity with an @Id entity which we then put into a list and store in an different entity inside a field defined as:
@OneToOne(orphanRemoval=true, cascade=CascadeType.ALL, fetch=FetchType.EAGER)
private Object payload;
the list that we put in the 'payload' is an java.util.ArrayList and it contains multitple entities with an the same id. the behavior we are seeing is that when we reload the entity that contains the 'payload' field is that every entity in the list is the same. I would understand if we ended up with a list with one item in item but we are ending up with a list with 45 items the same this is a little confusing.
can you help?