my dog learned polymorphism
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


Win a copy of Building Microservices this week in the Design forum!
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: 57
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: 57
Hi all,

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


thanks
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: how to write or map a primary key and two foreign key fields in one hbm.xml file
 
It's not a secret anymore!