Uploaded image for project: 'DeltaSpike'
  1. DeltaSpike
  2. DELTASPIKE-1384

Introduce @CreatedBy

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.9.1
    • Data-Module
    • None

    Description

      From the mailing list:

      Hi all,

      I recently stumbled over the auditing capabilities of DeltaSpike Data
      module. I like them a lot, but I noticed that there is @CreatedOn and
      @ModifiedOn for the timestamps, but only @ModifiedBy. I noticed, that
      @ModifiedBy is set on creation (differently to @ModifiedOn), but it is
      not preserved on updates (obviously).

      I would like to have @CreatedBy as well - analog to how the 2 timestamp
      annotations work. That includes adding a setOnCreate property to
      @ModifiedBy.

      I'm happy to work on a patch for this, but before that I'd like to put
      up for discussion the following:

      • @ModifiedOn is (by default) not set on creation, @ModifiedBy is. So to
        preserve backwards compatibility the 2 would have different default
        behavior.

      Any thoughts on that?

      Cheers,

      Juri

      Attachments

        Activity

          People

            Unassigned Unassigned
            tandraschko Thomas Andraschko
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: