added auto timestamp
authorSven Arnold <sven@schnuppe.(none)>
Sun, 12 Apr 2009 19:17:08 +0000 (21:17 +0200)
committerSven Arnold <sven@schnuppe.(none)>
Sun, 12 Apr 2009 19:17:08 +0000 (21:17 +0200)
grails-app/domain/News.groovy

index c59f9af..8907c8b 100644 (file)
@@ -1,8 +1,11 @@
 class News {
 
   Date dateCreated
+  Date lastUpdated
+
+  String title
   String content
 
-    static constraints = {
-    }
+  static constraints = {
+  }
 }