-->
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.  [ 3 posts ] 
Author Message
 Post subject: Why hibernate mapping String to LONG (of Oracle)??
PostPosted: Fri Jun 04, 2010 6:40 am 
Newbie

Joined: Wed Jun 02, 2010 4:22 am
Posts: 4
Hi!

I have a filed varchar2(4000 byte) in data base. Sometimes when I insert a String with 2000 characters approx. (2000 bytes approx.), hibernate mapping String to LONG causing this error: ORA-01461: can bind a LONG value only for insert into a LONG column

¿Why hibernate mapping String to LONG (of Oracle)???

I'm sorry my english :)

Regards


Top
 Profile  
 
 Post subject: Re: Why hibernate mapping String to LONG (of Oracle)??
PostPosted: Fri Jun 04, 2010 4:28 pm 
Newbie

Joined: Fri Mar 21, 2008 11:35 am
Posts: 10
what happens if the type is defined as VARCHAR2(4000 CHAR) vs VARCHAR2(4000 BYTE)


Top
 Profile  
 
 Post subject: Re: Why hibernate mapping String to LONG (of Oracle)??
PostPosted: Mon Jun 07, 2010 3:11 am 
Newbie

Joined: Wed Jun 02, 2010 4:22 am
Posts: 4
genomeprjct wrote:
what happens if the type is defined as VARCHAR2(4000 CHAR) vs VARCHAR2(4000 BYTE)


Changing varchar2 (4000 byte) of varchar2 (4000 char), gives the same error.

:(

The data base, java code, and xhtmls (JSF), are UTF-8.

Regards


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.