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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Reply 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://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: how to write or map a primary key and two foreign key fields in one hbm.xml file
 
Similar Threads
Hibernate mapping:Bean class & MySQL DB View
Foreign key access problem
Please help me me on @ejb.relationship using XDOCLET...
problem with Primary Key/ Generator class [Hibernate]
Replacing *.hbm.xml files with @Annotations.