Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate: Path expected for Join! exception for inner join

 
vikas sharmaa
Ranch Hand
Posts: 191
  • 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
  • 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");
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic