Beginner |
|
Joined: Thu Mar 09, 2006 1:45 pm Posts: 26
|
I am getting this exception:
SQLExceptionConverterFactory - using dialect defined converter
I have a timer running on a sun app server and when it fires off, I get this exception when I run this line of code:
SessionFactory factory = cfg.buildSessionFactory();
Is this because my properties are not correct in the config file:
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
".\src\org\hibernate\testing\config\hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name "connection.url">jdbc:oracle:thin:@localhost:1521:xe</property>
<property name="connection.username">allanbronson</property>
<property name="connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
<property name="dialect">org.hibernate.dialect.OracleDialect</property>
<property name="connection.password">maryrose</property>
<property name="transaction.factory_class">org.hibernate.transaction.JDBCTransactionFactory</property>
<!-- thread is the short name for
org.hibernate.context.ThreadLocalSessionContext
and let Hibernate bind the session automatically to the thread
-->
<property name="current_session_context_class">thread</property>
<!-- this will show us all sql statements -->
<property name="hibernate.show_sql">true</property>
<mapping resource="org/hibernate/testing/config/Company.hbm.xml" />
<mapping resource="org/hibernate/testing/config/Product.hbm.xml" />
<mapping resource="org/hibernate/testing/config/Employee.hbm.xml" />
</session-factory>
</hibernate-configuration>
any ideas would help, I have not a whole lot with hibernate.
Thanks
|
|