-->
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 is getting truncated, when using SQL Server text type
PostPosted: Mon Sep 26, 2005 6:45 pm 
Beginner
Beginner

Joined: Mon Sep 26, 2005 5:57 pm
Posts: 39
I have a property mapped like this:
<property name="resolution" column="resolution" type="String" />

where the column resolution is a SQL Server text column.

It appears that Nhibernate is truncating the string before sending it to the db. I verfified this by running SQL Server profiler.

I used manual sql commands to make sure nothing else was the problem, and I can easily store and retrieve text in this column without truncation?

Any ideas?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 27, 2005 7:16 am 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
Try adding type="StringClob", and possibly also specify a large length for the property.


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.