Is there a grails plugin or standard way of managing the created_by
, created_on
, updated_by
, updated_on
fields for a domain object?
views:
350answers:
1
+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
2009-05-07 23:24:50
Small typo I guess: It's lastUpdated instead of lastUpdate. See http://www.grails.org/GORM+-+Events#Automatic%20timestamping
Daniel Rinser
2009-05-07 23:47:50
Thanks for spotting it! I just edited the answer to fix said typo.
codehead
2009-05-09 23:02:25
perfect- thanks a lot!
Mike Sickler
2009-05-11 01:33:13