Hibernate version:
1.2.1.4000
Name and version of the database you are using:
Microsoft SQL Server 9.00.1406.00
I have two classes:
Code:
ClassA
{
Date1{get;set;}
}
ClassB:ClassA
{
Date2{get;set;}
}
In my DDL the column for Date2 must be nullable, however in my class it's not a nullable type. Is there a way to do null value substitution for this?
Also, is there way to substitue null for any date less than sql servers min date of 1/1/1753?
Basically, we dont allow nulls in our objects and that seems to be causing some problems here. We use DateTime.MinValue or DateTime.MaxValue as the default value for date fields.