Created
July 27, 2017 06:19
-
-
Save nullset2/ad2f7fc7fe2949bc831490fb475dd3cf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package blog | |
class Post { | |
String title | |
String content | |
Date dateCreated | |
Date lastUpdated | |
static hasMany = [tags: Tag] | |
static mapping = { | |
content type: "text" | |
} | |
static constraints = { | |
title maxSize: 255, blank: false | |
content blank: false | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment