title: Grails Domain Classes Dates
body: <p>I have this domain class:</p>
  
  <pre><code>class activity {
  
      String name
      Date startDate
      Date endDate
  
  
      static constraints = {
  
      }
  }
  </code></pre>
  
  <p>What i want to do is:</p>
  
  <p>a) apply constrains to the dates, for example minimum date and maximum date</p>
  
  <p>b) in my project i need to have an Array of dates and add as many endDates as i want. is it possible to do so? and how</p>