-->
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.  [ 11 posts ] 
Author Message
 Post subject: org.hibernate.MappingException: No Dialect mapping for JDBC
PostPosted: Thu Jun 02, 2016 3:23 am 
Newbie

Joined: Thu Jun 02, 2016 3:17 am
Posts: 6
I am facing an issue(org.springframework.orm.hibernate3.HibernateSystemException: No Dialect mapping for JDBC type: -9).
I have upgraded my application from ojdbc6.jar to ojdbd7.c for Oracle 12c Container Database.
Hibernate version is 3.5.6

For me issue is fixed by casting a nvarchar datatype to varchar2. But i don't want to go by this approach.

Please help in understating why nvarchar is not working with ojdbc7.jar. What would be the best fix for this issue.


Last edited by Zenith on Fri Jun 03, 2016 3:33 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: org.hibernate.MappingException: No Dialect mapping for JDBC
PostPosted: Thu Jun 02, 2016 3:36 am 
Hibernate Team
Hibernate Team

Joined: Thu Sep 11, 2014 2:50 am
Posts: 1628
Location: Romania
Oracle9iDialect or later ones map NVARCHAR to nvarchar2. What version of Oracle dialect are you using?


Top
 Profile  
 
 Post subject: Re: org.hibernate.MappingException: No Dialect mapping for JDBC
PostPosted: Fri Jun 03, 2016 2:28 am 
Newbie

Joined: Thu Jun 02, 2016 3:17 am
Posts: 6
Thanks for the reply.

Datatype in database is NVARCHAR2.

I am using Oracle10gDialect.
For Oracle12cDialect i need to upgrade Hibernate on 4.4 as on previous version it is not available.


Last edited by Zenith on Fri Jun 03, 2016 3:32 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: org.hibernate.MappingException: No Dialect mapping for JDBC
PostPosted: Fri Jun 03, 2016 3:03 am 
Hibernate Team
Hibernate Team

Joined: Thu Sep 11, 2014 2:50 am
Posts: 1628
Location: Romania
Can you replicate the issue with Hibernate 5? Maybe it was some issue that got fixed.


Top
 Profile  
 
 Post subject: Re: org.hibernate.MappingException: No Dialect mapping for JDBC
PostPosted: Fri Jun 03, 2016 3:35 am 
Newbie

Joined: Thu Jun 02, 2016 3:17 am
Posts: 6
For Hibernate 4/5, we need to change our code drastically.
As we are using some classes which is not present in Hibernate 4, like BtmTransactionManagerLookup, Ejb3Configuration.getHibernateConfiguration() etc


Top
 Profile  
 
 Post subject: Re: org.hibernate.MappingException: No Dialect mapping for JDBC
PostPosted: Fri Jun 03, 2016 3:38 am 
Newbie

Joined: Thu Jun 02, 2016 3:17 am
Posts: 6
Is there any link, for list of classes which were available in Hibernate 3.5.6 and not present in Hibernate 4/5 ?


Last edited by Zenith on Fri Jun 03, 2016 4:03 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: org.hibernate.MappingException: No Dialect mapping for JDBC
PostPosted: Fri Jun 03, 2016 3:54 am 
Hibernate Team
Hibernate Team

Joined: Thu Sep 11, 2014 2:50 am
Posts: 1628
Location: Romania
You can use the Hibernate Migration guides.Unfortunately, neither Hibernate 3.x and 4.x are supported, so only if it affects Hibernate 5.x, the issue is going to be fixed.


Top
 Profile  
 
 Post subject: Re: org.hibernate.MappingException: No Dialect mapping for JDBC
PostPosted: Fri Jun 03, 2016 4:06 am 
Newbie

Joined: Thu Jun 02, 2016 3:17 am
Posts: 6
Can you please tell me more about that nvarchar issue, I want to know the root cause of this issue.
And what is not fixed in 3.x/4.x and fixed in 5.x?


Top
 Profile  
 
 Post subject: Re: org.hibernate.MappingException: No Dialect mapping for JDBC
PostPosted: Fri Jun 03, 2016 4:10 am 
Hibernate Team
Hibernate Team

Joined: Thu Sep 11, 2014 2:50 am
Posts: 1628
Location: Romania
Unfortunately, I don't know of any such issue, so you need to replicate it with the Hibernate 5 test cases and if there is such an issue, you should open a bug on JIRA.


Top
 Profile  
 
 Post subject: Re: org.hibernate.MappingException: No Dialect mapping for JDBC
PostPosted: Fri Jun 03, 2016 4:49 am 
Newbie

Joined: Thu Jun 02, 2016 3:17 am
Posts: 6
One more query, which dailect I should use with Oracle 12c pluggable database.
I am able to up the application with 10gdialect.


Top
 Profile  
 
 Post subject: Re: org.hibernate.MappingException: No Dialect mapping for JDBC
PostPosted: Fri Jun 03, 2016 6:07 am 
Hibernate Team
Hibernate Team

Joined: Thu Sep 11, 2014 2:50 am
Posts: 1628
Location: Romania
You can use both 10 and 12 OracleDialects. With 10, you'll have less features.


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