IntelliJ Java IDE
The moose likes Object Relational Mapping and the fly likes HQL many to many query Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Object Relational Mapping
Reply Bookmark "HQL many to many query" Watch "HQL many to many query" New topic
Author

HQL many to many query

Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3334

Hi.
The relationship between Book and Author is many to many.
Can I use HQL to query for the book which one of its authors is author1?
A snippet is great if possible.
Thanks.
yo loo
Greenhorn

Joined: Jul 16, 2007
Posts: 3
now there are less people use many to many ,is hard to use,u could translate it to two many-to-one.
 
 
subject: HQL many to many query
 
Threads others viewed
Difference between Criteria API and HQL Queries?
A simple Select HQL not working
many-to-many bidirectional relationship query
What is wrong with this query?
Hibernate Search in Action QUESTION
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture