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: NHibernate Text value type
PostPosted: Mon Nov 07, 2005 11:01 pm 
Newbie

Joined: Mon Nov 07, 2005 10:09 pm
Posts: 9
Location: Milwaukee
Hi all,

Hibernate 2.x supports a value type called Text. I don't see a comparable one for NHibernate, though. Unfortunately, string maps to nvarchar(256). Is there one that maps to text/clob or do I have to write a custom datatype?

Basically I'm looking to map a string property with a database text value.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 08, 2005 4:55 am 
Senior
Senior

Joined: Thu Jun 02, 2005 5:03 pm
Posts: 135
Location: Paris
If you set the type on your mapping to type="StringClob" you should get what you're after. Mind you, it's also necessary to specify a length as a value indicating the maximum length you want retrieved from the CLOB field, otherwise your data will be truncated.

Cheers,

Symon.


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.