spring-projects/spring-data-jpa — pull request #45 by thomasdarimont (2013-10-21 13:46:38+00:00)
Title: DATAJPA-415 - Convert array parameter values to Collection if necessary.

In order to support query methods with array-typed parameters (e.g. parameters passed in as varargs) correctly we have to convert such an array into a collection. Previously we passed those parameters as is which led to Exceptions in EclipseLink and Hibernate, e.g. Hibernate: IllegalArgumentException: Encountered array-valued parameter binding, but was expecting [java.lang.Integer].