File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hibernate: many-to-many --how to add a constrain?
 
Similar Threads
Reading All the records from a table + Hibernate
JPA-Hibernate One-to-One Bidirectional Relationship issue
Hibernate bidirectional manyToOne: How to get Index easily.
OneToMany <-> ManyToOne relationship
OpenJPA Foreign Key