aspose file tools*
The moose likes Object Relational Mapping and the fly likes Hibernate: Path expected for Join! exception for inner join Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hibernate: Path expected for Join! exception for inner join" Watch "Hibernate: Path expected for Join! exception for inner join" New topic
Author

Hibernate: Path expected for Join! exception for inner join

vikas sharmaa
Ranch Hand

Joined: Jun 28, 2007
Posts: 191
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

Joined: Jun 28, 2007
Posts: 191
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
 
subject: Hibernate: Path expected for Join! exception for inner join