File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate: Path expected for Join! exception for inner join

 
vikas sharmaa
Ranch Hand
Posts: 191
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is one-to-one mapping between Game and Team tables.

I am getting "Path expected for Join!" exception on executing below inner join HQL query:



Please find below the mapping files:

Team.hbm.xml


Game.hbm.xml


Team.java


Game.java
 
vikas sharmaa
Ranch Hand
Posts: 191
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok i got it. the correct query is

session.createQuery("from Team t join t.game gm");
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic