-
Mar 1st, 2007, 01:59 PM
#1
Composite key using Hibernate Annotations
Hey all,
Can someone give me a proper example for Composite key using Hibernate Annoations.
suppose
Table1 : Product { id(pk), name }
Table2 : Item { id(pk), name }
Table12 :ProductItem{id(pk) , productId(fk) , itemId(fk) }
pk - primary key
fk - foreign key
can anyone implement above define tables using hibernate annotaions
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules