It does generate the correct DDL, but Hibernate insists on inserting a null instead of using the default, even if dynamic-insert="true"
This in the xml document:
Code:
<property name="testProperty" type="string">
<column name="testProperty" default="'default string'"/>
</property>
produces this schema:
Code:
testProperty varchar(255) default 'default string'
Which is right, but Hibernate insists on inserting a null value.
This is very disappointing as it means we have to put the defaults into the code and not into the xml, as we hoped.
Has anyone solved the puzzle, or does it really not work?
TIA