Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:3.0
Name and version of the database you are using:SQL server
<hibernate-mapping package="com.onebeacon.diarytracking.ormapping.domain">
<class name="FeeCompany" table="FeeCompany">
<id name="FeeCompanyAbbr" type="java.lang.String" unsaved-value="null">
<column name="FeeCompanyAbbr" sql-type="java.lang.String" not-null="true" />
</id>
<property name="FeeCompanyName" column="FeeCompanyName" type="java.lang.String" length="40" lazy="true" />
</class>
</hibernate-mapping>
when i insert one record into FeeCompany and not provide the FeeCompanyName then hibernate insert the null by default becuz it's nullable colunm.
My question is how to force hibernate to insert the defualt value instead of null for that property.
please help me.............