Академический Документы
Профессиональный Документы
Культура Документы
1. jar files
2. hibernate.cfg.xml
<hibernate-configuration>
<session-factory>
<property
name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDri
ver</property>
<property
name="hibernate.connection.url">jdbc:oracle:thin:@172.19.13.107:1521:
TEST
</property>
<property
name="hibernate.connection.username">hib_test</property>
<property
name="hibernate.connection.password">hib_test</property>
<property name="hibernate.connection.pool_size">2</property>
<property name="show_sql">true</property>
<property
name="dialect">org.hibernate.dialect.Oracle10gDialect</property>
<property name="hibernate.hbm2ddl.auto">update</property>
<!-- Mapping files -->
<mapping
resource="com/java/hibernate/pojo/UserDetail.hbm.xml"/>
</session-factory>
</hibernate-configuration>
3. HibernateUtil
package com.util;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;
private HibernateUtil()
{
super();
}