it’s a OneToOne relationship so it is correct that the join column is unique, 1 Card ↔︎ 1 User, if the same user can have multiple cards than the association should be a ManyToOne and in that case you will see that the column used as foreign key is not unique. For
Hibernate generates
|