From efd48714aac9d9103a078f459dd5c5e9b8420c9b Mon Sep 17 00:00:00 2001 From: Sven Arnold Date: Sun, 12 Apr 2009 21:17:08 +0200 Subject: [PATCH] added auto timestamp --- grails-app/domain/News.groovy | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/grails-app/domain/News.groovy b/grails-app/domain/News.groovy index c59f9af..8907c8b 100644 --- a/grails-app/domain/News.groovy +++ b/grails-app/domain/News.groovy @@ -1,8 +1,11 @@ class News { Date dateCreated + Date lastUpdated + + String title String content - static constraints = { - } + static constraints = { + } } -- 2.11.0