标签:
Exception in thread "main" java.lang.IllegalArgumentException: Positional parameter does not exist: 1 in query: from Images i where i.eyeglass.eyeType.typeName=?
at org.hibernate.impl.AbstractQueryImpl.setParameter(AbstractQueryImpl.java:359)
at org.hibernate.impl.AbstractQueryImpl.setString(AbstractQueryImpl.java:481)
at com.eyeglass.hibernate.dao.impl.ImagesDaoImpl.selectImagesByStyle(ImagesDaoImpl.java:41)
at com.eyeglass.hibernate.test.StyleTest.main(StyleTest.java:25)
主要因为方法需要的参数 传入错误
标签:
原文地址:http://www.cnblogs.com/shumengru/p/5138049.html