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 + oracle + nvarchar2
PostPosted: Thu Nov 27, 2008 11:12 pm 
Newbie

Joined: Thu Nov 27, 2008 10:58 pm
Posts: 1
Hi.. let me apologize for asking maybe banal question but I'm trying to solve this for at least 5 hours and I'm getting little bit desperate..
I'm trying to map pojo to oracle 10g database table which contains nvarchar2 fields. I'm getting Wrong column type, expected: nvarchar error.. I hope I'm close to solution - I found that it can be done using:
connectionProperties="defaultNChar=true"
in ( I think ) hibernate.properties file..
so then only thing I need is to write it to hibernate configuration.
What is hibernate.cfg.xml alternative of this command? or I don't understand it correctly?

thanks you a lot.. you'll save a student's another night spent googling :)
have a nice day..


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.