dtolabs / yana2

Yet Another Node Authority ... because you wanted an agile Real-Time Service Model (RTSM)
8 stars 1 forks source link

Refactor dateCreated/lastUpdated to use GORM events #179

Closed ahonor closed 12 years ago

ahonor commented 12 years ago

Refactor the domain classes and controllers so they don't themselves implement the dateCreated and lastUpdated properties. Instead use GORM events.

See also #169

gschueler commented 12 years ago

fyi: you don't need to use GORM events, just set these domain properties and grails will do it automatically:

Date dateCreated
Date lastUpdated