If you use List as a reference type but do not specify an index number column, you will have an unordered collection without requiring uniqueness. Yes, the list is an ordered collection at the java level, but there is no guarantee that copies of object instances are in the same order.
@OneToMany private List<OtherEntity> otherEntities;
What all!
source share