Source

Texa / grails-app / domain / com / koyanainc / bc / Comment.groovy

package com.koyanainc.bc

class Comment {

    Integer attachementCount = 0
    Person author
    String body = "No comment!"

    Date createdAt
    String emailedFrom = ""

    CommentableType objectOfComment
    
    static constraints = {
        author(nullable:false)
        objectOfComment(nullable:false)
    }

    static mapping = {
        id generator: 'assigned'

    }
}