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

"web mvc finder all" generates code with syntax error for "IsNull/IsNotNull" finders

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 1.2.5.RELEASE
    • Fix Version/s: 1.3.0.RELEASE
    • Component/s: DYNAMIC FINDERS, WEB MVC
    • Labels:
      None

      Description

      project --topLevelPackage com.acme.foo
      jpa setup --provider HIBERNATE --database HYPERSONIC_IN_MEMORY
      
      entity jpa --class ~.Foo
      field string --fieldName bar
      finder add --finderName findFoosByBarIsNull
      
      web mvc setup
      web mvc all --package ~.web
      
      web mvc finder all
      

      results in syntax errors for FooController_Roo_Controller_Finder.aj:

      [ERROR] Failed to execute goal org.codehaus.mojo:aspectj-maven-plugin:1.4:compile (default) on project foo: Compiler errors:
      [ERROR] error at uiModel.addAttribute("foos", Foo.findFoosByBarIsNull(, sortFieldName, sortOrder).setFirstResult(firstResult).setMaxResults(sizeNo).getResultList());
      [ERROR]
      [ERROR] /root/acme/src/main/java/com/acme/foo/web/FooController_Roo_Controller_Finder.aj:25:0::0 Syntax error on token ",", delete this token
      [ERROR] error at uiModel.addAttribute("foos", Foo.findFoosByBarIsNull(, sortFieldName, sortOrder).getResultList());
      [ERROR]
      [ERROR] /root/acme/src/main/java/com/acme/foo/web/FooController_Roo_Controller_Finder.aj:29:0::0 Syntax error on token ",", delete this token
      

        Attachments

          Activity

            People

            • Assignee:
              jcgarcia Juan Carlos GarcĂ­a del Canto
              Reporter:
              donnd David Donn
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: