2
回答
(救急!)hql问题大神看到一定要点进来
利用AWS快速构建适用于生产的无服务器应用程序,免费试用12个月>>>   
这是我写的hql
String hql="select ssd.buss.component.workdaily.pojo.new Workdaily(w.id,w.employeeid,"
				+ "w.dutyname,w.workdate,"
				+ "w.workcontent,w.updatetime,w.createtime,"
				+ "user.userName,log.logName) "
				+ "from Workdaily w,User user,OperateLog log "
				+ "where log.createUserId = user.userCode";
运行的时候报这个错误:
对就是那个红色圈住的点,图片有点长点击放大了看

源码:

Caused by: org.springframework.orm.hibernate3.HibernateQueryException: unexpected token: . near line 1, column 41 [select ssd.buss.component.workdaily.pojo.new Workdaily(w.id,w.employeeid,w.dutyname,w.workdate,w.workcontent,w.updatetime,w.createtime,user.userName,log.logName) from ssd.buss.component.workdaily.pojo.Workdaily w,ssd.buss.basic.user.pojo.User user,ssd.buss.basic.operatelog.pojo.OperateLog log where log.createUserId = user.userCode order by id desc ]; nested exception is org.hibernate.hql.ast.QuerySyntaxException: unexpected token: . near line 1, column 41 [select ssd.buss.component.workdaily.pojo.new Workdaily(w.id,w.employeeid,w.dutyname,w.workdate,w.workcontent,w.updatetime,w.createtime,user.userName,log.logName) from ssd.buss.component.workdaily.pojo.Workdaily w,ssd.buss.basic.user.pojo.User user,ssd.buss.basic.operatelog.pojo.OperateLog log where log.createUserId = user.userCode order by id desc ]



哪位大神知道啊  我百度了好多跟我类似错误的但都不对,我的错误时因为那个 点!




举报
帅狗
发帖于4年前 2回/116阅
顶部