Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate Join

 
Nishan Patel
Ranch Hand
Posts: 689
Eclipse IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hello,

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" />
</join>

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

So, give me solution for same ASAP.

 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a read of this.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic