-->
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: Char type in Mapping file
PostPosted: Thu Nov 09, 2006 3:19 pm 
Newbie

Joined: Thu Nov 09, 2006 1:00 pm
Posts: 5
Hi,

I am facing a problem in mapping to a Char type.
In my oracle table i have defined a column as Char(1) as a Nullable column.
In Mapping file i have defined

<property name="switch" type="char">
<column name="VAL_SW" length="1" />
</property>
in the bean i have defined the switch as char and given set and get methods.

I get the below error when i launch the page.
ORA-01401: inserted value too large for column ; nested exception is java.sql.BatchUpdateException: ORA-01401: inserted value too large for column


Could you please help on this.

Regards,
Prasanth


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 11, 2007 5:56 am 
Newbie

Joined: Thu May 03, 2007 7:53 am
Posts: 15
Hi,

I am facing the same problem.
Did you find a solution ?

Thanks,

Regards,


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.