File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why is my Hibernate Search query not working?

Nina Anderson
Ranch Hand
Posts: 148
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:


ADDRESS table:


It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic