Source

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

package com.koyanainc.bc

class Milestone {

  String title
  Integer commentsCount = 0
  Boolean completed = false

  Date completedOn
  Date deadline
  Date createdOn

  Person completer
  Person creator
  ResponsibleParty responsibleParty

  //Project project

  Boolean wantsNotification = false

  static hasMany = [comments:Comment]
  
  static belongsTo = [project:Project]
   
  
  static constraints = {
    title(blank:false)
    completedOn(nullable:true)
    creator(nullable:false)

    //deadline(nullable:false)
    project(nullable:false)
    completer(nullable:true)
    //responsibleParty(nullable:true)

  }
    
  static mapping = {
    id generator: 'assigned'
  }

}