TypedQuery in JPA 2