Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      Hi,

      I've got a minor suggestion:

      EntityManager.createNativeQuery(String, Class)

      could return a TypedQuery as the result class is specified:

      TypedQuery<T> createNativeQuery(java.lang.String sqlString,
      java.lang.Class<T> resultClass)

      -Adrian

        Activity

        Hide
        edvin added a comment -

        Is there a more complex underlying reason for this not being fixed? At first glance it seems trivial.

        Show
        edvin added a comment - Is there a more complex underlying reason for this not being fixed? At first glance it seems trivial.
        Hide
        hirdil added a comment -

        It would be nice to have this feature.

        Show
        hirdil added a comment - It would be nice to have this feature.
        Hide
        neilstockton added a comment -

        You mean, apart from the fact that there already is a method
        createNativeQuery(String sqlString, Class resultClass)

        returning Query. So for backwards compatibility you can't just change the signature. Unless backwards compatibility is thrown away of course ...

        Show
        neilstockton added a comment - You mean, apart from the fact that there already is a method createNativeQuery(String sqlString, Class resultClass) returning Query. So for backwards compatibility you can't just change the signature. Unless backwards compatibility is thrown away of course ...

          People

          • Assignee:
            ldemichiel
            Reporter:
            agoerler
          • Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated: