Source

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

Full commit
rob 5839b5d 



Robert MacGregor 0a8ea43 


rob 5839b5d 
Robert MacGregor 0a8ea43 


rob 5839b5d 
Robert MacGregor 0a8ea43 


rob 5839b5d 
rob a984dd3 
rob 5839b5d 
Robert MacGregor 0a8ea43 
rob 5839b5d 
Robert MacGregor 0a8ea43 
rob a984dd3 



Robert MacGregor 0a8ea43 



rob 5839b5d 
Robert MacGregor 0a8ea43 



rob 5839b5d 
Robert MacGregor 0a8ea43 




rob 5839b5d 
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'
  }

}