Hello,
I've a nclob field and don't know how to map in hibernate.
when I searched this forum, I could find following userType for NChar.
But anyone knows how to create userString type for NClob field or any other way to map nclob field?
<property name="ntitle" type="UTFStringType" >
<column name="NTITLE" sql-type="nvarchar(100)" not-null="true"/>
</property>
public class UTFStringType extends StringType{
public void set(PreparedStatement st, Object value, int index) throws SQLException {
if (st instanceof OraclePreparedStatement) {
((OraclePreparedStatement)st).setFormOfUse(index, OraclePreparedStatement.FORM_NCHAR);
}
super.set(st, value, index);
}
}
Thanks
|