Joined: Tue Feb 27, 2007 9:18 am Posts: 7
|
hi,
i have written like this
<property name="baseCurrency" type="yes_no" column="BASE_CURRENCY" not-null="false" />
in java public boolean baseCurrency;
in sql
BASE_CURRENCY char(1) .
here BASE_CURRENCY value is 'Y' or 'N'. but the field is not having null constarint. so there might be chance of having null value.
how can i solve the problem if there is null value.
hiberante set the property of either yes or no value.
if null value is there in table. it raised setter property field exception..
thanks
naveen.m
|
|