aspose file tools*
The moose likes Object Relational Mapping and the fly likes how to write or map a primary key and two foreign key fields in one hbm.xml file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "how to write or map a primary key and two foreign key fields in one hbm.xml file" Watch "how to write or map a primary key and two foreign key fields in one hbm.xml file" New topic
Author

how to write or map a primary key and two foreign key fields in one hbm.xml file

raj jaiswal
Ranch Hand

Joined: Nov 25, 2008
Posts: 56
Hi All,
I have one primary key and two foreign key fields in my table. .My question is how to map or write primary key and foreign key fields in hbm.xml file. As per i know in one hbm.xml class having only one id that is primary key or foreign key.


So please help any one to solve this problem.


Thanks

Rajjaiswal
--------------------------------
MCA SCJP1.6
raj jaiswal
Ranch Hand

Joined: Nov 25, 2008
Posts: 56
Hi all,

Yesterday I posted One issues can any one solve that issues.
Because I am unable to solve that problem.


thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to write or map a primary key and two foreign key fields in one hbm.xml file