Source

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

package com.koyanainc.bc

class TodoList
{
    Integer completedCount = 0
    Integer uncompletedCount = 0

    String description = ""
    //Milestone milestone

    String name
    Integer position = 0
    static belongsTo = [project:Project, milestone:Milestone]

    Boolean tracked = false

    static hasMany = [todoItems:TodoItem]

    static constraints = {
        uncompletedCount(min:0)
        milestone(nullable:true)
        name(blank:false)
        project(nullable:false)
    }

    static mapping = {
        id generator: 'assigned'

    }

}