title: Why do I get a "Null value was assigned to a property of primitive type setter of" error message when using HibernateCriteriaBuilder in Grails
body: <p>I get the following error when using a primitive attribute in my grails domain object:</p>
  
  <pre><code>Null value was assigned to a property of primitive type setter of MyDomain.myAttribute
   org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter of MyDomain.myAttribute
  at grails.orm.HibernateCriteriaBuilder.invokeMethod(HibernateCriteriaBuilder.java:1077)
  </code></pre>