Uploaded image for project: 'Apache Roller'
  1. Apache Roller
  2. ROL-1995

Switch to JPA Typed Queries

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Implemented
    • 5.1.0
    • 5.1.0
    • None

    Description

      JPA 2.0 offers typed queries (http://docs.oracle.com/javaee/6/api/javax/persistence/TypedQuery.html) better fitting for generic/parameterized types that Roller is now using. Switching from javax.persistence.Query to TypedQuery will get rid of the ugly "unchecked assignment" warnings that IDEs report (for one of many examples, see JPAWeblogEntryManagerImpl's List<WeblogCategory> getWeblogCategories(Weblog website) within an IDE.)

      Attachments

        Activity

          People

            gmazza Glen Mazza
            gmazza Glen Mazza
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: