Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-1163

TypedQuery in finder and entity

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: None
    • Fix Version/s: 1.1.0.RC1
    • Labels:
      None

      Description

      Instead of using

      Query createQuery(String query)

      in Entities and Finders, it could make more sense to use

      TypedQuery<T> createQuery(String query, T.class)

      This makes all result sets type safe and would remove unchecked exceptions and the need for casts on List getResultList()

        Attachments

          Activity

            People

            Assignee:
            stewarta Alan Stewart
            Reporter:
            simonellistonball simon elliston ball
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: