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

finder add command not working on 2.0.0.RC2, works ok on older version 1.3

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Works as Designed
    • Affects Version/s: 2.0.0.RC2
    • Fix Version/s: 2.0.0.RC3
    • Component/s: @ ROO SHELL
    • Labels:
      None
    • Environment:
      Windows 10, spring-roo-2.0.0.RC2, sts-3.9.1.RELEASE

      Description

      The finder command always indicates the following error, regardless of how the finder is named:
      --name parameter must follow Spring Data nomenclature. Please, write a valid value using autocomplete feature (TAB or CTRL + Space)

      Example:

      jpa setup --provider HIBERNATE --database HYPERSONIC_IN_MEMORY
      entity jpa --class ~.mypackage.MyObject
      field string MyObjectStringField
      finder add --entity ~.mypackage.MyObject --name countByMyObjectStringField

      *output:
      ~.mypackage.MyObject roo> finder add --entity ~.mypackage.MyObject --name countByMyObjectStringField
      --name parameter must follow Spring Data nomenclature. Please, write a valid value using autocomplete feature (TAB or CTRL + Space)*

      finder add --entity ~.mypackage.MyObject --name findMyObjectStringField

      *output:
      ~.mypackage.MyObject roo> finder add --entity ~.mypackage.MyObject --name findMyObjectStringField
      --name parameter must follow Spring Data nomenclature. Please, write a valid value using autocomplete feature (TAB or CTRL + Space)
      ~.mypackage.MyObject roo> *

      finder add --entity ~.mypackage.MyObject --name queryDistinctMyObjectStringField

      output:
      ~.mypackage.MyObject roo> finder add --entity ~.mypackage.MyObject --name queryDistinctMyObjectStringField
      --name parameter must follow Spring Data nomenclature. Please, write a valid value using autocomplete feature (TAB or CTRL + Space)
      ~.mypackage.MyObject roo>

        Attachments

          Activity

            People

            • Assignee:
              frnore Fran Cardoso
              Reporter:
              gandalf.hudlow Gandalf Hudlow
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: