java.lang.IllegalArgumentException:
java.lang.IllegalArgumentException:ParameterstaffIddoesnotexistasanamedparameterin[fr...
java.lang.IllegalArgumentException: Parameter staffId does not exist as a named parameter in [from org.gd.film.vo.StaffRole a where a.staffId= :staffId and a.roleCode= :roleCode]
org.hibernate.impl.AbstractQueryImpl.setParameter(AbstractQueryImpl.java:380) org.hibernate.impl.AbstractQueryImpl.setString(AbstractQueryImpl.java:667) org.gd.film.dao.impl.StaffRoleDAOImpl.isRole(StaffRoleDAOImpl.java:17) org.gd.film.service.impl.StaffRoleServiceImpl.isRole(StaffRoleServiceImpl.java:19) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) java.lang.reflect.Method.invoke(Unknown Source) org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318) org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
StaffRoleDAOImpl.isRole
这是什么错?应该怎样改?
语句改成frin org.gd.film.vo.StaffRole则存在此警告:
WARN [org.hibernate.hql.QuerySplitter] - no persistent classes found for query class: from org.gd.film.vo.StaffRole 展开
org.hibernate.impl.AbstractQueryImpl.setParameter(AbstractQueryImpl.java:380) org.hibernate.impl.AbstractQueryImpl.setString(AbstractQueryImpl.java:667) org.gd.film.dao.impl.StaffRoleDAOImpl.isRole(StaffRoleDAOImpl.java:17) org.gd.film.service.impl.StaffRoleServiceImpl.isRole(StaffRoleServiceImpl.java:19) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) java.lang.reflect.Method.invoke(Unknown Source) org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318) org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
StaffRoleDAOImpl.isRole
这是什么错?应该怎样改?
语句改成frin org.gd.film.vo.StaffRole则存在此警告:
WARN [org.hibernate.hql.QuerySplitter] - no persistent classes found for query class: from org.gd.film.vo.StaffRole 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询