I am trying to execute a namedquery
@NamedQuery(name=\"getEmployeeDetails\",query=\"select e.username,e.email,e.image,e.firstname,e.lastname from Employee e
Inspect the returned type by calling .getClass() on a returned object. I'd guess it's an array.
.getClass()
But this is not really a good way to use JPA. Select the whole entity and then just don't use what you don't need. It's not such a performance hit.