String hql="select distinct new com.procedure.hibernate.oracle10.getHibernateTemplate.model.VideoFactory(f.factoryid,f.factoryname) from VideoFactory f right join DeviceFactoryModel d with f.id = d.videoFactory.factoryid";上面的语句一直出错
org.springframework.orm.hibernate3.HibernateQueryException: Path expected for join! [select distinct new com.procedure.hibernate.oracle10.getHibernateTemplate.model.VideoFactory(f.factoryid,f.factoryname) from com.procedure.hibernate.oracle10.getHibernateTemplate.model.VideoFactory f right join DeviceFactoryModel d with f.id = d.videoFactory.factoryid]; nested exception is org.hibernate.hql.ast.QuerySyntaxException: Path expected for join! [select distinct new com.procedure.hibernate.oracle10.getHibernateTemplate.model.VideoFactory(f.factoryid,f.factoryname) from com.procedure.hibernate.oracle10.getHibernateTemplate.model.VideoFactory f right join DeviceFactoryModel d with f.id = d.videoFactory.factoryid]
org.hibernate.hql.ast.QuerySyntaxException: Path expected for join! [select distinct new com.procedure.hibernate.oracle10.getHibernateTemplate.model.VideoFactory(f.factoryid,f.factoryname) from com.procedure.hibernate.oracle10.getHibernateTemplate.model.VideoFactory f right join DeviceFactoryModel d with f.id = d.videoFactory.factoryid]
at org.hibernate.hql.ast.ErrorCounter.throwQueryException(ErrorCounter.java:59)
at org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:225)
org.springframework.orm.hibernate3.HibernateQueryException: Path expected for join! [select distinct new com.procedure.hibernate.oracle10.getHibernateTemplate.model.VideoFactory(f.factoryid,f.factoryname) from com.procedure.hibernate.oracle10.getHibernateTemplate.model.VideoFactory f right join DeviceFactoryModel d with f.id = d.videoFactory.factoryid]; nested exception is org.hibernate.hql.ast.QuerySyntaxException: Path expected for join! [select distinct new com.procedure.hibernate.oracle10.getHibernateTemplate.model.VideoFactory(f.factoryid,f.factoryname) from com.procedure.hibernate.oracle10.getHibernateTemplate.model.VideoFactory f right join DeviceFactoryModel d with f.id = d.videoFactory.factoryid]
org.hibernate.hql.ast.QuerySyntaxException: Path expected for join! [select distinct new com.procedure.hibernate.oracle10.getHibernateTemplate.model.VideoFactory(f.factoryid,f.factoryname) from com.procedure.hibernate.oracle10.getHibernateTemplate.model.VideoFactory f right join DeviceFactoryModel d with f.id = d.videoFactory.factoryid]
at org.hibernate.hql.ast.ErrorCounter.throwQueryException(ErrorCounter.java:59)
at org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:225)
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货