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

Create constructors

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: 1.0.0.RC2
    • Fix Version/s: 1.2.3.RELEASE
    • Component/s: GENERAL OBJECTS
    • Labels:
      None
    • Environment:
      All

      Description

      Roo generates setters for entities, but only a default constructor. Constructors are a perfectly normal way to initialise a Java class, especially when setting mandatory fields since there is no guarantee that setters are ever invoked. Maybe provide a switch to specify whether mandatory (@NotNull) fields are to be passed via setters or via a constructor.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              stewarta Alan Stewart
              Reporter:
              paul.chapman Paul Chapman
              Votes:
              10 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: