[英]JBAS014134: EJB Invocation failed
List results= sessionFactory.getCurrentSession().createQuery("from org.gencat.gimah.dao.GimahCobramentTargeta ct where ct.expEcon.id=: idEE and ct.cobrament is null ")
.setParameter("idEE", idEE)
.list();
JBAS014134: EJB Invocation failed on component Expedients for method public abstract java.util.List org.gencat.gimah.model.Expedients.doBuscarDetallExpeconAPartirGestio(long,java.lang.String,boolean) throws org.gencat.gimah.exception.GimahExcepcio,java.rmi.RemoteException: javax.ejb.EJBException: org.hibernate.HibernateException: could not locate named parameter [idEE]
There is an error in the parameter ct.expEcon.id=: idEE
. 参数ct.expEcon.id=: idEE
存在错误。 It is incorrect to put a space after :
. 这是不正确的加一个空格后:
。 You need to use parameters by this way 您需要通过这种方式使用参数
ct.expEcon.id = :idEE
And, please, use more reasonable parameter's names. 并且,请使用更合理的参数名称。 idEE
is a bad choice, because of two neighbour capital letters E
. idEE
是一个错误的选择,因为两个相邻的大写字母E
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.