• Post Reply Bookmark Topic Watch Topic
  • New Topic

Hibernate: many-to-many --how to add a constrain?  RSS feed

 
Adrian Burlington
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I'm trying to have a unique-constrain on a many-to-many relationship.


in the table: KFP_RELATIONSHIP I don't wish to have a duplication of KFP_ID and CUSTOMER_ID.
Can anyone point how to fix it?

Thanks!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!