Re: JPA @ManyToMany @ForeignKey name not used


Andy
 
Edited

You're wrong in the mapping definition. @JoinTable has foreignKey and inverseForeignKey.

Take it up with the people behind JPA why their definition of annotations are unintuitive ... but then you wont find anyone accountable for them, they ran away many years ago.

Join main@datanucleus.groups.io to automatically receive all group messages.