class Entry { Person person Task task Date dateTime Integer duration String comments static hasMany = [persons: Person] static belongsTo = [TypeOfEntry, Task, Person] static constraints = { person(blank:false) task(blank:false) dateTime(nullable:true) duration(nullable:true) comments(maxLength:500) } }