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 many-to-many mapping in the hibernate mapping file ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "many-to-many mapping in the hibernate mapping file ?" Watch "many-to-many mapping in the hibernate mapping file ?" New topic
Author

many-to-many mapping in the hibernate mapping file ?

kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1381
Customer and Account table has many-to-many relationships. Hence i created link table for creating two one-to-many relationships. link table has both tables primary key. How can i represent many-to-many relationship in the hibernate mapping file for Customer and Account tables ?
kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1381
Any reply?
 
Consider Paul's rocket mass heater.
 
subject: many-to-many mapping in the hibernate mapping file ?