| You cannot combine entity aliases and DTOs in the same SELECT clause. In the select clause you can have:
- an entity alias
- multiple entity aliases, in which case you get an Object[]
- multiple scalar values, in which case you get an Object[]
- a DTO which can be constructed with the NEW keyword
The JPA specs doesn't say anything about combining entities and DTOs in the same SELECT clause. |