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

Make JPA column non-updatable for date fields called 'created'

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 1.2.0.RELEASE
    • Fix Version/s: 1.2.1.RELEASE
    • Component/s: PERSISTENCE
    • Labels:
      None

      Description

      Database column create fields for audit purposes are not meant to be updatable. This change will detect fields created with the field date command and also using DBRE with the exact name and case, "created" and add updatable = false to the @Column annotation and also initialise the field to new java.util.Date();

        Attachments

          Activity

            People

            Assignee:
            stewarta Alan Stewart
            Reporter:
            stewarta Alan Stewart
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: