Como usar find em propriedade Date de um Domain ignorando a hora ?
20/12/2012 18:32
domain.propertyDate.clearTime()
def localDate = new LocalDateTime(monitora.data)
def cubo = CuboRelatorio.findAll("from CuboRelatorio as cr where cr.talhao.id = ? and cr.data between ? and ?", [monitora?.talhao?.id, localDate.toDateTimeAtStartOfDay(), localDate.plusDays(1).toDateTimeAtStartOfDay()])
Para se registrar, clique aqui.