-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Wrong Hibernate mapping in DB2
PostPosted: Tue Nov 21, 2006 3:43 pm 
Newbie

Joined: Wed Oct 11, 2006 2:48 pm
Posts: 4
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.