I get the following error when using a primitive attribute in my grails domain object:
Null value was assigned to a property of primitive type setter of MyDomain
@Column(name ="LEAD_ID") private int leadId;
Change to
@Column(name ="LEAD_ID") private Integer leadId;