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)