-->
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: Problems with BinaryBlob
PostPosted: Wed Jun 08, 2005 2:40 pm 
Newbie

Joined: Thu May 12, 2005 10:40 am
Posts: 16
concerning nhibernate 0.8.2.0

Within my hbml.xml file i have
<property name="Inhalt" column="mme_content" type="BinaryBlob"/>

my mapping class has property

public System.Byte[] Inhalt {
get { return content; }
set { content = value; }
}

if i generate the schema-file for NHibernate.Dialect.MsSql2000Dialect
i get a definition of
..., mme_content VARBINARY(255) null,...

which leads in an error when trying to save a content which is fe 7000 bytes large (truncate-error)
if i change the mme_content type in ms-sql-database manually to image, everything works fine.

So what am i making wrong ? why schema for BinaryBlob creates a varbinary(255) which, as far i can see is only capable to hold 255 binary items ?

Or do i have any understanding troubles ?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 08, 2005 3:37 pm 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
Specify length="some big number" in your property mapping, it should help.


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.