hibernate 的关联问题
杨丰玉 2005-11-18 10:38:24 一个很简单的hql语句,却报了这样一个错误,各位大虾帮我看看是什么问题。先谢了!
org.hibernate.hql.ast.QuerySyntaxError: unexpected token: on near line 1, column
110 [ from net.oa.member.view.MemberView left outer join fetch MemberView.mbOrg
inner join MemberChangeView as mc on MemberView.ID = MemberChangeView.member.ID
where 1=1 and ( MemberView.mbOrg.orgName = ? and MemberChangeView.mbcTime >= ?
)]
at org.hibernate.hql.ast.ErrorCounter.throwQueryException(ErrorCounter.j
ava:63)
at org.hibernate.hql.ast.QueryTranslatorImpl.parse(QueryTranslatorImpl.j
ava:215)
at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorIm
pl.java:127)
at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl
.java:83)
at org.hibernate.impl.SessionFactoryImpl.getQuery(SessionFactoryImpl.jav
a:427)
at org.hibernate.impl.SessionImpl.getQueries(SessionImpl.java:884)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:834)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:74)
at net.oa.tool.DbProcess.getList(DbProcess.java:379)
at net.oa.member.action.MemberQueryAction.execute(MemberQueryAction.java
:231)