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

Reply via email to