jQuery in Action, 3rd edition
The moose likes Object Relational Mapping and the fly likes Hibernate Join Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hibernate Join" Watch "Hibernate Join" New topic

Hibernate Join

Nishan Patel
Ranch Hand

Joined: Sep 07, 2008
Posts: 689


I am using hibernate and I want to make join using Hbm.xml.

Is there any way to make join using xml and how ??

I have get result using this code.

<join table="item_categories" fetch="join" >
<key column="id" />

But in another place where I am using this xml it gives error.

So, give me solution for same ASAP.

Thanks, Nishan Patel
SCJP 1.5, SCWCD 1.5, OCPJWSD Java Developer,My Blog
Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

Have a read of this.

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
I agree. Here's the link: http://aspose.com/file-tools
subject: Hibernate Join
It's not a secret anymore!