Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What is wrong with this query?

 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 364
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It seems to me that I haven't define the auth alias...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic