Add default value to column


stephane
 

I would like to add the default value of a field to the database column definition, in order to have the SchemaTool generating it in the database.

I tried like in the doc, but without success:
<mapping-file>META-INF/orm-mysql.xml</mapping-file>
 <basic name="currency">
            <column name="CURRENCY" default-value="GBP"/>
        </basic>

any suggestion ?

--
Stephane

Join main@datanucleus.groups.io to automatically receive all group messages.