Andrea Boriero Its actually irrelevant where the exception about mixing parameter types comes from. The JPA spec explicitly says that support for mixing them is "undefined" (JPA Specification 2.1, section 3.10.11 "Parameter Objects")