Using "IN" query with a set of two entities gives "Parameter not set" error SQL error

Description

Executing a query like "FROM BEntity b WHERE b.a IN :coll" and passing a set with two AEntity gives this error:

org.hibernate.exception.GenericJDBCException: could not extract ResultSet
at com.example.bug.HibTest.multipleCollectionTest(HibTest.java:68)
Caused by: org.hibernate.exception.GenericJDBCException: could not extract ResultSet
at com.example.bug.HibTest.multipleCollectionTest(HibTest.java:68)
Caused by: java.sql.SQLException: Parameter not set
at com.example.bug.HibTest.multipleCollectionTest(HibTest.java:68)
Caused by: org.hsqldb.HsqlException: Parameter not set
at com.example.bug.HibTest.multipleCollectionTest(HibTest.java:68)

Environment

None

Assignee

Unassigned

Reporter

Alessandro Polverini

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure