I have the following domain class in my grails project:
class Vacation { Date start Date end User vacationer static constraints = { start(validator: {return (it >= new Date()-1)}) } }
Is it possible to add a validator that requires the end to be equal to or greater than the start?
Greetings
user159050
source share