When I specify the columns in my jpql / jpa 2.0 request, i.e. select p.id, p.lastName, p.firstName from Profile p where p.group = :groupI get the following error: [Ljava.lang.Object; cannot be cast to com.profs.ws.Profile...Does anyone know how to solve this casting problem?
The class itself Profilehas the properties of the following types: String, int, and Collection. The properties that I select in the request are of type Stringor int.
source
share