When I persist object with embedded collection that is defined like Code: ... private List<TimeInstant> values; @ElementCollection @Column(name = "values") public List<TimeInstant> getValues() { return values; } .... this collection got persisted in random order. I mean if my list is Code: {timeInstant1, timeInstant2, timeInstant3} in database it may look like Code: "values" : [ { timeInstant2 } , { timeInstant1 } , { timeInstant3 } ] List is initiated as an ArrayList. |