• Post Reply Bookmark Topic Watch Topic
  • New Topic

joins in Hibernate Annotation

 
Nina Anderson
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to use Hibernate Annotation for Hibernate Search and I'm stuck. I'm trying to link the relationship between these 3 tables: Business, Business_Address, and Address.

Here's my table hbm.xml:






Here's my Annotation class:






Here's my FULLTEXT search:



Can someone show my how to show the join relationship using Annotation?
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!