aspose file tools*
The moose likes Object Relational Mapping and the fly likes What is wrong with this query? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "What is wrong with this query?" Watch "What is wrong with this query?" New topic
Author

What is wrong with this query?

Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3476

Hi.
I'm using Hibernate as a persistence provider framework and JPA annotations to map domain classes to the database.
I have two classes:
Author and Book and the relationship is many-to-many.
I defined this names query:

IntelliJ is telling me that there is something wrong with this query but I'm not convinced to run a SeamTest to try it.
I got a HibernateException (IntelliJ was right after all).
Whats wrong with HQL?
Thanks.
Edvins Reisons
Ranch Hand

Joined: Dec 11, 2006
Posts: 364
John,

I believe that the exception messages that you are getting are more specific than "something wrong with this query "
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3476

IntelliJ tells that the query is not valid, SeamTest throws HibernateException during booting JBoss embedded container.
I don't remember that I got a clear error message from the exception.
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3476

It seems to me that I haven't define the auth alias...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What is wrong with this query?
 
Similar Threads
Queries with string parameters
How to delete many side objects in merge operation?
At work, Javascript, CSS, AJAX Code
HQL many to many query
Which is the best IDE?