-->
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.  [ 5 posts ] 
Author Message
 Post subject: hibernate-3.1 with Oracle Database 10g Express Edition
PostPosted: Wed Feb 01, 2006 8:52 am 
Beginner
Beginner

Joined: Fri Mar 11, 2005 7:52 am
Posts: 34
Has Anyone Oracle Database 10g Express Edition up and running with hibernate (3.1)? I use the following configuration:

Code:
## Oracle 10G
hibernate.dialect org.hibernate.dialect.OracleDialect
hibernate.connection.driver oracle.jdbc.driver.OracleDriver
hibernate.connection.username roland   
hibernate.connection.password roland
#hibernate.connection.url jdbc:oracle:thin:@localhost:1521:ORCL
hibernate.connection.url jdbc:oracle:thin:@localhost:1521:xe


With the ojdbc14.jar driver.

But when I start this, I experience a "No suitable driver" error...

Greetings,

Roland Beuker


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 01, 2006 11:53 am 
Regular
Regular

Joined: Wed Jun 29, 2005 11:14 pm
Posts: 119
Location: København
Can you get a stand alone java class to talk to the DB using that driver?


Top
 Profile  
 
 Post subject: After a really frustrating hour I saw the error
PostPosted: Thu Feb 02, 2006 4:47 am 
Beginner
Beginner

Joined: Fri Mar 11, 2005 7:52 am
Posts: 34
timrobertson100 wrote:
Can you get a stand alone java class to talk to the DB using that driver?


Yes everything was working except Hibernate... After a really frustrating hour I saw the error in the configuration:

Code:
hibernate.connection.driver oracle.jdbc.driver.OracleDriver

should be
Code:
hibernate.connection.driver_class oracle.jdbc.driver.OracleDriver

Now its working ;-)


Top
 Profile  
 
 Post subject: Oracle Express Edition !!
PostPosted: Tue Jan 30, 2007 7:05 am 
Newbie

Joined: Tue Jan 30, 2007 7:01 am
Posts: 1
Hello,

even when i have kept it "hibernate.connection.driver_class" it is not working with me. the configuration which is with me is -:

<property name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
<property name="hibernate.connection.url">jdbc:oracle:thin:@localhost:1521:xe</property>
<property name="hibernate.connection.username">SAURABH-PRACTICE</property>
<property name="hibernate.connection.password">sys123</property>
<property name="hibernate.connection.pool_size">10</property>
<property name="show_sql">true</property>
<property name="dialect">org.hibernate.dialect.OracleDialect</property>
<property name="hibernate.hbm2ddl.auto">update</property>
<!-- Mapping files -->
<mapping resource="contact.hbm.xml"/>

<<<<< Problem: It is going smoothly, but it is not inserting any data in the table and also not throwing any exception for the same. >>>>>>
Is there any problem with the OracleDialect?
should i use something else?

Expecting a quick help from experts.

saurabh


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 01, 2007 3:28 am 
Expert
Expert

Joined: Tue Jan 30, 2007 12:45 am
Posts: 283
Location: India
Hi saurabhgupta,

Plz.. check That ur Transaction Annotation are placed correctly

_________________
Dharmendra Pandey


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