tags:

views:

350

answers:

1

Is there a grails plugin or standard way of managing the created_by, created_on, updated_by, updated_on fields for a domain object?

+5  A: 

If you declare dateCreated and lastUpdated as Date they wil be maintained automatically by grails. You can use the Grails Audit Logging Plugin to log the authenticated user under different security systems.

codehead
Small typo I guess: It's lastUpdated instead of lastUpdate. See http://www.grails.org/GORM+-+Events#Automatic%20timestamping
Daniel Rinser
Thanks for spotting it! I just edited the answer to fix said typo.
codehead
perfect- thanks a lot!
Mike Sickler