This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes Why is my Hibernate Search query not working? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Why is my Hibernate Search query not working?" Watch "Why is my Hibernate Search query not working?" New topic
Author

Why is my Hibernate Search query not working?

Nina Anderson
Ranch Hand

Joined: Jul 18, 2006
Posts: 148
My working search does not working on associated objects. I'm trying to find a business in a given city (ex. "Pizza Hut" in "Florida). I have 3 tables BUSINESS, ADDRESS and BUSINESS_ADDRESS, where Business_Address is the intermediate table. The primary key in the BUSINESS_ADDRESS table is "Business_Address_Id" and "business_Id" and "address_Id" are foreign keys.

Can you tell me what I'm doing wrong in my 3 class configuration:

BUSINESS table


ADDRESS table:


BUSINESS_ADDRESS table:


FULLTEXT QUERY:
 
Have you checked out Aspose?
 
subject: Why is my Hibernate Search query not working?
 
It's not a secret anymore!