I have the following DB schema:
And the following model:
I'm struggling to map the RootChildren as an @Embedded within Root. I've tried using a @ManyToMany within RootChildren to map the set of Child, but I couldn't make it work.
It doesn't seem like there's a lot of documentation online on the subject or at least I couldn't find
anything that works so hopefully someone will be able to help.
Note that I do not want to model bi-directional relationships if possible. Thanks!
Erratum: RootChildren#children should be a SortedSet.

