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

Uppercase field names not working with scaffold

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0.RC2
    • Fix Version/s: 1.0.0.RC3
    • Component/s: WEB MVC
    • Labels:
      None

      Description

      Execute the following script (note the uppercase letter in the field name):

      project --topLevelPackage org.test.rootask
      persistence setup --provider HIBERNATE --database HYPERSONIC_IN_MEMORY
      entity --name ~.domain.Task
      field string Name
      controller all --package ~.web

      Run it and browse to: http://localhost:8080/rootask/task/form

      It throws an error:

      org.springframework.beans.NotReadablePropertyException: Invalid property 'Name' of bean class [org.test.rootask.domain.Task]: Bean property 'Name' is not readable or has an invalid getter method: Does the return type of the getter match the parameter type of the setter?

      This code works:
      project --topLevelPackage org.test.rootask
      persistence setup --provider HIBERNATE --database HYPERSONIC_IN_MEMORY
      entity --name ~.domain.Task
      field string name
      controller all --package ~.web

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sschmidt Stefan Schmidt
                Reporter:
                matt.smith123 Matt Smith
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: