Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-2618

Query for Tuple does not return Tuple instance

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.4.0
    • None
    • jpa
    • 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            oliver.gierke Oliver Drotbohm
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: