How to make the ids of an embeddable class unique together spring data jpa so that no duplicates can be entered

前端 未结 0 2042
野性不改
野性不改 2020-12-29 22:37

I have 3 tables User, Book and Review. Review has an imbeddedId i want to make unique so that there are no duplicates of a user reviewing a book more than once. Thanks in ad

相关标签:
回答
  • 消灭零回复
提交回复
热议问题