|
Is it possible that you actually wanted to use the @CollectionTable annotation instead of the @JoinTable annotation on the map? If not, then you maybe need the @MapKeyColumn annotation with the attribute 'table' set to the name of the secondary table. I don't think this edge case is defined in the JPA spec, but I didn't really look for it.
|