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

Finder AspectJ MEMBER OF select statement format incorrect

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: 1.1.3.RELEASE
    • Fix Version/s: 1.1.4.RELEASE
    • Component/s: DYNAMIC FINDERS
    • Labels:
      None
    • Environment:
      Linux Ubuntu 10.04 x86 java SE (Sun / Oracle) version "1.6.0_24"

      Description

      Upgraded from 1.1.2 to 1.1.3 finders have been changed so that now using o rather than the entity name e.g.

      SELECT o FROM EntityName AS o WHERE ...

      rather than:

      SELECT EntityName FROM EntityName AS EntityName WHERE ...

      as for 1.1.2

      This is fine but the MEMBER of statement has not been updated when referencing a collection within the entity e.g.

      1.1.2 code:

      SELECT entityName FROM EntityName AS entityName WHERE :member_item0 MEMBER OF entityName.members

      1.1.3 code:

      SELECT o FROM EntityName AS o WHERE :member_item0 MEMBER OF entityName.members

      this should be:

      SELECT o FROM EntityName AS o WHERE :member_item0 MEMBER OF o.members

      The fix for this is to move affected finders into entity class and make appropriate changes.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              stewarta Alan Stewart
              Reporter:
              pg Paul Green
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: