-->
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 configuration with sql server for nvarchar column
PostPosted: Mon Jun 18, 2012 9:56 am 
Newbie

Joined: Thu Mar 29, 2012 7:19 am
Posts: 7
Hi All,

I am facing one problem. My application database is sql server 2005, and I am using hibernate mapping.

Recently we modified on table to support Japanese characters to nvarchar from varchar.
Data is getting stored and retrieve correctly.

The problem is when we executes select query with where clause like, from table_name where column_name='data_in_japanese' this query fails to read Japanese data stored in table.

I know, we can pull information by using prefixing data 'N' like column_name=N'data' in plain-sql, but how that will get append in HQL?

OR

In-other words, what should be java data-type I should mention in mapping xml for nvarchar db-type? I tried with java.lang.String but its not working for me.

Can anyone please suggest solution for this?


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.