Hello,
I'm developing a small application on Grails 1.3.5 and I run into this very strange problem.
My domain classes feature some boolean typed fields. None of these fields is persisted when creating a new instance (and saving it of course).
For example, I have this domain class "Employee", defined as follows (simplified):
class Employee {
String name
boolean present
}
When I create a new instance of that class and I persist it, the name is saved, but the present-named boolean isn't.
def newEmp = new Employee(name: "me", present: true)
newEmp.save(failOnError: true, flush: true)
When saving, no error is thrown. However, in the database (I use MySQL) the binary column "present" always remains empty.
What could be causing this? This happens alongs all my domain classes.