posted 18 years ago
hello any body can help me
iam new hibernate iam mapping date field. when iam getting the date
filed from database(i want userdefined format like dd-mm-yyyy iam using oracle databse). for this how can i map. i tried using formula="some sql"
its working fine but when insertion time the data will not inseterted to databse bcz iam using formula.
<property name="lastUpdatedDate" type ="date" >
<column name= "LAST_UPDATED_DATE" sql-type ="date" formula ="to_char(LAST_UPDATED_DATE,'dd-mm-yyyy')" not-null = "true"/>
</property>