Hibernate version: 2.1.6
Database version: 8.1.13.193
Why does hibernate create my table as VARCHAR(255) for a field with the type as a Serilaizable class when the database needs a BLOOB there ?
If after creating the tables from hibernate i modify the field type to BLOOB my application works fine.
And how can I fix this ?
My Mapping document is:
Code:
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">
<hibernate-mapping default-cascade="none" auto-import="true"
default-access="field">
<class name="com.diatem.db.login.ClientWrapper" mutable="true" polymorphism="implicit" dynamic-update="false" dynamic-insert="false" proxy="com.diatem.db.login.ClientWrapper">
<cache usage="read-write" />
<id name="id" type="long" unsaved-value="0">
<generator class="native">
</generator>
</id>
<property name="client" type="com.client.Client" />
</class>
</hibernate-mapping>
and class Client implements Remote and Serializable.
Thanks