emmanuel wrote:
add @JoinTable(joinColumns=...)
where?
- on the collection, only the join to the parent is possible, the collection elements are embedded! It changes nothing,the default is ok
- on the ManyToOne from the collection element, changes only the join to the child table. The default is ok.
The problem is the primary key of the collection table, which breaks the collection sematics in this case!
emmanuel wrote:
Please confirm this is actually written in the documentation
Where? I've read the documention many times and cannot find it