Use JPA 2.0 'typed' query.