why Unexpected gap in ordinal parameter labels [1 -> 4] : [1,4,5]
See original GitHub issueJPAQuery<QUserTEntity> jpaQuery = (JPAQuery<QUserTEntity>) jpaQueryFactory .from(qUserTEntity).leftJoin(qDeptTEntity) .on(qUserTEntity.deptId.eq(qDeptTEntity.deptId)).where(qUserTEntity.userId.in(1,2,3));
java.lang.IllegalArgumentException: org.hibernate.QueryException: Unexpected gap in ordinal parameter labels [1 -> 4] : [1,4,5] at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:138) ~[hibernate-core-5.4.8.Final.jar:5.4.8.Final] at org.hibernate.query.internal.AbstractProducedQuery.list(AbstractProducedQuery.java:1535) ~[hibernate-core-5.4.8.Final.jar:5.4.8.Final] at org.hibernate.query.internal.QueryImpl.list(QueryImpl.java) ~[hibernate-core-5.4.8.Final.jar:5.4.8.Final] at org.hibernate.query.internal.AbstractProducedQuery.getSingleResult(AbstractProducedQuery.java:1574) ~[hibernate-core-5.4.8.Final.jar:5.4.8.Final] at com.querydsl.jpa.impl.AbstractJPAQuery.fetchCount(AbstractJPAQuery.java:82) ~[querydsl-jpa-4.3.1.jar:na]
Why is this so
querydsl version:4.3.1
help me,thanks
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (3 by maintainers)
I use idea development tools,multiple modules are introduced in one project
There are two versions of hibernate in this one, one is 5.3.10 and the other is 5.4.15, which runs with errors
I took out the modules inside and downloaded the maven dependencies again, my in query was normal
I currently suspect maven dependency conflict
I’m working on the same version of the project, and the in-condition query is normal
thank you
Good luck with your application 😄