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

Use constants instead of strings values

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 2.0.0.M2
    • Fix Version/s: 2.0.0.M3
    • Component/s: None
    • Labels:
      None

      Description

      Spring Roo generates finders body with the following content:

      AttributeMappingBuilder mapping = buildMapper().map("description", visit.description).map("visitDate", visit.visitDate);
      

      If exists more than one finder, the string "visitDate" appears more than one time in the code, so we will have a lot of duplicated strings.

      Generate constants for that string values and use it in the finders body.

        Attachments

          Activity

            People

            Assignee:
            jcgarcia Juan Carlos García del Canto
            Reporter:
            jcgarcia Juan Carlos García del Canto
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: