-->
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: Hibernate3 and oracle12c
PostPosted: Tue May 12, 2015 4:51 am 
Newbie

Joined: Tue May 12, 2015 4:39 am
Posts: 1
Hi

I got a lagacy system using Hibernate3 (version 3.3.1.GA). It is currently connected to a oracle 11g database. We are planing to upgrade the database to oracle 12c. But I have trouble to run my test against oracle 12c. Some of my queries behave differently when comparing timestamp fields. I also get alot of "Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1" in different senarios. If I switch back to oracle 11g everything work fine. Its part of the story that I upgraded from ojdbc6 to ojdbc7.

So what I need to know before I dive to hard info my problems: Is this suposed to work. ie Running hibernate3 against oracle 12c. Or do I need to upgrade hibernate?

Best regards

Marius


Top
 Profile  
 
 Post subject: Re: Hibernate3 and oracle12c
PostPosted: Fri Oct 09, 2015 12:28 pm 
Beginner
Beginner

Joined: Thu May 18, 2006 2:58 pm
Posts: 28
Marias

I posted before trying with the latest driver.

I have Hibernate 3.1.1 GA working with Oracle 12c using the ojdbc7.jar and org.hibernate.dialect.Oracle10gDialect.

Haven't fully tested, but could connect and perform queries. I'll post back if any issues arise.

Thanks.

Matt

Quote:
Marius,


I'm in the same boat...any luck with resolving this?

Please let me know.

Thanks.

Matt


Top
 Profile  
 
 Post subject: Re: Hibernate3 and oracle12c
PostPosted: Thu Mar 10, 2016 4:20 pm 
Newbie

Joined: Thu Mar 10, 2016 4:07 pm
Posts: 2
Hi,
I am in a similar situation. We are upgrading oracle from 11g to 12c. My application is using hibernate3.jar which is 3.6.8-Final version. It works great with 11g using Oracle10gDialect but when I connect to 12c database I get below error.

Invocation of init method failed; nested exception is org.hibernate.HibernateException: Unable to determine Dialect to use [name=Oracle, majorVersion=12]; user must register resolver or explicitly set 'hibernate.dialect'

I tried downgrading till 3.1.1 and upgrading till 3.6.10-Final. Below 3.6.8 my code wont compile as there is no Oracle10gDialect class before that. And even 3.6.10-final version gives me same above error. I cannot upgrade to Hibernate 4. Any advise will be of great help. thank you.


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.