Hi,
my table foo has some columns that don't accept null values and have a data default set.
In this example, it's the column "ID_SOMEID"
Code:
<property name="idSomeId" type="string">
<column name="ID_SOMEID" length="64" not-null="true">
<comment>some comment</comment>
</column>
</property>
On the table definition, it takes "0" as default value.
I got the above snippet out of Hibernate Reverse Engineering hbm file. How do I tell Hibernate it should set the POJO to table default value, when it's set to null and i'm trying to persist it? I'd like to "fire and forget" for those columns that set to "not null" and have a default value defined...
I use eclipse 3.4.1
Hibernate Tools 3.2.2.GA
Latest Java JDK (1.4 compliance) and Oracle 9i
thanks in advance
~pi4630