Name and version of the database you are using:
Oracle 10g
Error message:
Error under artifact generation
org.hibernate.exception.GenericJDBCException:Reading from database
Hibernate.cfg.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="hibernate.show_sql">true</property>
<property name="hibernate.connection.username">user</property>
<property name="hibernate.connection.password">passw</property>
<property name="hibernate.dialect">org.hibernate.dialect.Oracle9Dialect</property>
<property name="hibernate.connection.url">jdbc:oracle:thin:@host:port:sid</property>
<property name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
<property name="hibernate.default_schema">MY_SCHEMA</property>
</session-factory>
</hibernate-configuration>
Hello
I am having the problem that I cannot generate the mapping files out of a Oracle 10g database with the HibernateTool. As a driver I use the classes12.jar driver package which I downloaded from the oracle 10g site.
Yesterday I tried the approach with middlegen, having the same configuration resulting in that middlegen could not read any metadata, it read the tables and columns but no constraints at all.
If anyone could help me with anything I'd be happy.
Thanks.
Tarik
Code: