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)
主要因为方法需要的参数 传入错误
时间: 2024-10-13 10:08:41