title: Grails - how execute code before every save?
body: <p>Is there a good/standard way to execute some common code before every <code>save()</code> invocation on domain classes?</p>
  
  <p>For example, my domain </p>
  
  <pre><code>class Page {
  
      String url
      Boolean processed
      Date date
      Integer urlCrc 
  }
  </code></pre>
  
  <p>My form has only 3 first fields and I would like to calculate <code>urlCrc</code> every time the <code>save()</code> method is called. I cannot just override save method because it is injected.</p>