i have downloaded and installed oracle 9.2.04 for linux on one m/c
downloaded and put the ojdbc14.jar in the lib directory along with other jar files.Do i need to have any other jar files?
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<!-- <property name="hibernate.connection.driver_class">com.microsoft.jdbc.sqlserver.SQLServerDriver</property>
<property name="hibernate.connection.url">jdbc:microsoft:sqlserver://192.168.3.7:1433; DATABASENAME = sample</property>
<property name="hibernate.connection.username">sa</property>
<property name="hibernate.connection.password"></property>
<property name="hibernate.connection.pool_size">10</property>
<property name="show_sql">true</property>
<property name="dialect">org.hibernate.dialect.SQLServerDialect</property>-->
<property name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
<property name="hibernate.connection.url">jdbc
racle:thin:@192.168.3.16:1521
RA920</property>
<property name="hibernate.connection.username">sys</property>
<property name="hibernate.connection.password">dba</property>
<property name="hibernate.connection.pool_size">10</property>
<property name="show_sql">true</property>
<property name="dialect">org.hibernate.dialect.OracleDialect</property>
<!-- Mapping files -->
<mapping resource="rolemaster.hbm.xml"/>
<mapping resource="usermaster.hbm.xml"/>
</session-factory>
</hibernate-configuration>
I've written two
java classes with getter and setter method.created another java class for retrieving the values.and needed hibernate mapping file.
I tried my code with sql server it is working(with the block that is commented now).
i created TABLE for both sql and oracle.
Will this help?(I am new to Oracle and hibernate)
Thanks and Regards
Anuja K