Path expected for join!的解决办法


Path expected for join! [SELECT count(*) FROM  cn.com.jsoft.entities.TDSysnphoto p left join TDSysnotice s where p.snid = s.id]; nested exception is org.hibernate.hql.ast.QuerySyntaxException: Path expected for join! [SELECT count(*) FROM  cn.com.jsoft.entities.TDSysnphoto p left join TDSysnotice s where p.snid = s.id]


Hibernate貌似不认识join,那就换成“,”吧!再试试。

你可能感兴趣的:(Hibernate,Java)