Grails
  1. Grails
  2. GRAILS-8312

namedQuery.get() always returns null but namedQuery.list().find{it} returns a result

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0-RC1
    • Fix Version/s: 2.0.1, 2.1-RC1
    • Component/s: Persistence
    • Labels:
      None

      Description

      namedQuery.get() always returns null but namedQuery.list().find

      {it}

      returns a result

      The test app is attached to GRAILS-8311 (http://jira.grails.org/secure/attachment/17039/SessionTestApp-bug-report-16112011.zip) .

      reproducing problem with GRAILS-8311 testapp : "grails run-app", then go to url http://localhost:8080/SessionTestApp/my/showgetbug

        Activity

        Hide
        Jeff Scott Brown added a comment -

        The code is on the master branch for inclusion in Grails 2.1. I am going to leave this issue open for now as a reminder that the change needs to be pulled over to the 2.0.x branch for inclusion in Grails 2.0.1 but I don't want the code on the 2.0.x branch until after Grails 2.0.0 is released. We are currently in the RC cycle for 2.0.0 and a new feature like this probably shouldn't be slipped in at this point.

        Show
        Jeff Scott Brown added a comment - The code is on the master branch for inclusion in Grails 2.1. I am going to leave this issue open for now as a reminder that the change needs to be pulled over to the 2.0.x branch for inclusion in Grails 2.0.1 but I don't want the code on the 2.0.x branch until after Grails 2.0.0 is released. We are currently in the RC cycle for 2.0.0 and a new feature like this probably shouldn't be slipped in at this point.

          People

          • Assignee:
            Jeff Scott Brown
            Reporter:
            Lari Hotari
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development