aspose file tools*
The moose likes Object Relational Mapping and the fly likes Hibernate: many-to-many --how to add a constrain? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hibernate: many-to-many --how to add a constrain? " Watch "Hibernate: many-to-many --how to add a constrain? " New topic
Author

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

Adrian Burlington
Ranch Hand

Joined: Jun 16, 2009
Posts: 75
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!
 
Consider Paul's rocket mass heater.
 
subject: Hibernate: many-to-many --how to add a constrain?