Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.4.0
-
None
-
None
Description
TypedQuery<Tuple> query = em.createQuery("SELECT u.firstname from User u", Tuple.class);
List<Tuple> result = query.getResultList();
List<TupleElement<?>> elements = result.get(0).getElements();
This breaks at result.get(0) with java.lang.ClassCastException: java.lang.String cannot be cast to javax.persistence.Tuple.