I configure Hibernate through a mapping configuration file.
<class name="Person" table="person"> <id name="id" column="id" type="long"/> <property name="name" column="name" type="string"/> <property name="age" column="age" type="integer"/> </class>
How to set age to nullable and default to null?
Steve kuo
source share