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: Inserting Japanese and chinese character into oracle DB
PostPosted: Tue Sep 04, 2007 12:51 am 
Newbie

Joined: Tue Sep 04, 2007 12:38 am
Posts: 2
Hi,
while trying to insert and retrieve the Japanese character into oracle DB
i am facing to connect the DB using Hibernate 3.2 with having the property

<property name="charSet" value="UTF-8"/>

without using this property if i retrieve the Japanese string then i getting the string like "ƒƒOƒCƒ“"

on using this property i am getting invalid property Error

org.springframework.beans.InvalidPropertyException: Invalid property 'charSet' of bean class [org.apache.commons.dbcp.BasicDataSource]: No property 'charSet' found.


For Reference i Have the Properties like this.

<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
<property name="driverClassName" value="oracle.jdbc.OracleDriver"/>
<property name="url" value="jdbc:oracle:thin:@10.33.195.65:1521:mydb"/>
<property name="username" value="mydb"/>
<property name="password" value="mydb"/>
<property name="charSet" value="UTF-8"/>
<property name="maxActive" value="100"/>
<property name="maxIdle" value="30"/>
<property name="maxWait" value="1000"/>
<property name="defaultAutoCommit" value="true"/>
<property name="removeAbandoned" value="true"/>
<property name="removeAbandonedTimeout" value="60"/>
</bean>
</beans>

please help me to have the correct property in Hibernate configuration for inserting the Japanese character.
Thanks in advance.
Mallikarjun


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 04, 2007 2:12 am 
Newbie

Joined: Mon Sep 03, 2007 9:10 am
Posts: 7
The complete name for this property is "connection.charset"

Regards,
Eva.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 04, 2007 9:45 am 
Newbie

Joined: Tue Sep 04, 2007 12:38 am
Posts: 2
dafne wrote:
The complete name for this property is "connection.charset"

Regards,
Eva.



Thanks Eva for your info,

However i resolved this issue by instilling the new Oracle DB instance By setting the CharacterSet="AL32UTF8" instead of the default one. this will save all the Japanese and Chinese characters,
If you are using the third party clients like Toad make sure these tools will support multi language.

Now even not using the "connection.charset" property also it is working fine i guess this will be taken care by the Drivar.

Thanks you all
Mallikarjun Revgond


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.