Hi all,
I'm trying to set up a ManyToMany relationship but I'm getting the following error:
Exception Description: The @JoinColumns on the annotated element [field gruppi] from the entity class [class users.model.entities.Utente] is incomplete. When the source entity class uses a composite primary key, a @JoinColumn must be specified for each join column using the @JoinColumns. Both the name and the referencedColumnName elements must be specified in each such @JoinColumn.
I'm a little confused because I don't think I'm using a composite key....
Here is the code for the class Utente (owner of the relationship):
And here is the code for the class Gruppo:
It must be something very stupid but I'm just not seeing it!
Thanks for any help
Eve