-->
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.  [ 2 posts ] 
Author Message
 Post subject: Data too long error - Blob Type
PostPosted: Mon Nov 23, 2009 6:19 am 
Newbie

Joined: Thu Nov 12, 2009 11:10 am
Posts: 3
Hello,

I am trying to map blob type in MySQL using Hibernate 3.0.
I am getting error as Data Too long for the specified column. I tried to specify length as 1000000000 but still I am getting the same error. Below is my mapping file:

<hibernate-mapping>
<class name="com.parser.domain.StoredResume" table="StoredResume">
<id name="document" column="document" ></id>
<property name="resume" column="resume" type="com.parser.repository.hibernate.BinaryBlobType" length="1000000000" ></property>


</class>
</hibernate-mapping>

Please advice.

Best Regards,
Jai Kishan Shah


Top
 Profile  
 
 Post subject: Re: Data too long error - Blob Type
PostPosted: Mon Nov 23, 2009 9:52 am 
Expert
Expert

Joined: Thu Jan 08, 2009 6:16 am
Posts: 661
Location: Germany
Hibernate does not change the column length if it already exists. Change it manually at your db or let hibernate (re-)create the table for you.

_________________
-----------------
Need advanced help? http://www.viada.eu


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

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.