-->
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: [Hibernate Shards] Problems with I18N
PostPosted: Tue Dec 18, 2007 3:56 pm 
Newbie

Joined: Sun Sep 16, 2007 9:45 am
Posts: 6
Hi Everyone,

I am using MySQL + Hibernate for an application. I am facing an issue in making the application I18N.

I have created a table which has all column types as UTF8 and in the hibernate.cfg.xml, I have
<property name="hibernate.connection.url">jdbc:mysql://localhost/mydb?useUnicode=true&amp;characterEncoding=UTF-8</property>

When I use normal hibernate to manage this POJO, I am able to save and read UTF8 values. But moment I use Hibernate Shards to manage this POJO, I am not able to write ( but I can read ) UTF8 Strings ( e.g: saving chinese strings results in ???? in db ).

-> Both hibernate.cfg.xml ( normal and sharded case ) has the above connection url.

Could someone help me understand what might be going wrong ?

Thanks,
Rakesh


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 18, 2007 4:11 pm 
Newbie

Joined: Sun Sep 16, 2007 9:45 am
Posts: 6
Sorry everyone... I had posted it too quick.

The issue was the I was using normal DAO to load a table which contained the sharded DAO configuration. I had forgotten to update the table property :(

-Rakesh


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.