Re:Problems with JPA/Hibernate
by doctor_eval on Monday April 12, 2021 @08:12PM
(#26786687)
Yeah it is bonkers! Not just at first glance. The fact that the SQL integration for the child object behaves differently based on the kind of collection used in the parent is exactly the kind of unintuitive behaviour that drove me nuts.
There are so many rules to remember for something that is supposed to make SQL integration natural.
Yeah, it seems a little bonkers on first glance and I haven't ever dug in to see if there was a justifiable reason or not.
IIRC, if you just need ordering, you could just use an SortedSet. I think technically lists are for when you need ordering and duplicates.