@JoinTable(name = "prop_user", joinColumns = {@JoinColumn(name = "id_prop", referencedColumnName = "idproposicao")},
inverseJoinColumns = {@JoinColumn(name = "id_user", referencedColumnName = "cpf")})
@PrimaryKeyJoinColumn
private UsuarioEntity userProp;
Using the above code in the User entity, I created a relationship with the Proposition entity, generating a relationship table, but I have no control over it. All in done via hibernate by annotation.
And now I need to create an extra field in this relationship, a String "Opinion" attribute and I do not know how to do it with JPA.
I see that it seems that I need to redo the relationships, as I will need to create an entity class for this relationship, manually shaping to my need. Can anyone confirm if I'm on the right track?
Thank you!