Hibernate 3.0
MySQL
I have an object which contains a date field named "closedDate".
The field is mapped to a tapestry timestamp field.
Everything works fine if I put data into the date.
However, the business process I am modelling requires that sometimes this date be null. Specifically, if a document is still open, it'll have a closedDate of null.
When I try to save an object with a null closedDate ... it works.
But, when I load it back in, I get a null pointer exception.
Is there a trick to allow nulls in a Date (or any other object field) for that matter? Null strings seem to work fine, but null Dates aren't working for me.
|