-->
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: Hibernate cannot read SQL Server char User Defined Data Type
PostPosted: Thu Nov 02, 2006 10:44 am 
Newbie

Joined: Mon Sep 18, 2006 6:34 am
Posts: 18
Hi,

I think the problems I've been having with Hibernate comes down to the fact that it cannot seem to read char data types greater than 1 char in length.

We use user defined data types for some of the fields in our tables that are under 20 characters and set them up as:

UDDT_Code CHAR (20)

When Hibernate looks at these fields, it only picks up the first character, even though there could be 20. Varchar fields run fine but I think the fact that there is more than one character in the char field that Hibernate sh*ts itself and generates IllegalArgumentException errors.

Is there a way around this? Might take a look at the usertypes thingy.


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.