Please see this link. I had same problem:
http://forum.hibernate.org/viewtopic.ph ... highlight=
Please see last entry which solved my problem. In mapping file if you can make changes link this:
from your ref:
<property name="status" type="string">
<column name="STATUS" length="2" not-null="true" />
</property>
change to:
<property name="status" type="string">
<column name="STATUS" sql-type ="char" length="2" not-null="true" />
</property>
This should solve you problem. By default Hibernate assumes that the column is string and compares against VARCHAR(255). This problem happens only when schema is validated. For any other cases this problem will not arise
Best wishes. If this is helpful please rate it. Thank you. Hari