/home/mario/oci/jnb/dataaccess/source/resources/hibernate.cfg.xml
|
1 <?xml version='1.0' encoding='utf-8'?>
2 <!DOCTYPE hibernate-configuration PUBLIC
3 "-//Hibernate/Hibernate Configuration DTD 2.0//EN"
4
5 "http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd">
6
7 <hibernate-configuration>
8
9 <!-- a SessionFactory instance listed as /jndi/name -->
10 <session-factory>
11
12 <!-- properties -->
13 <property name="connection.username">mario</property>
14 <property name="connection.password"></property>
15 <property name="connection.url">jdbc:postgresql://localhost/business</property>
16 <property name="connection.driver_class">org.postgresql.Driver</property>-->
17 <property name="dialect">net.sf.hibernate.dialect.PostgreSQLDialect</property>
18 <property name="show_sql">false</property>
19 <property name="use_outer_join">true</property>
20
21 <!-- mapping files -->
22 <mapping resource="hibernate-config/com/ociweb/bean/Customer.hbm.xml"/>
23 <mapping resource="hibernate-config/com/ociweb/bean/Order.hbm.xml"/>
24 <mapping resource="hibernate-config/com/ociweb/bean/Orderitem.hbm.xml"/>
25 <mapping resource="hibernate-config/com/ociweb/bean/Product.hbm.xml"/>
26 </session-factory>
27
28 </hibernate-configuration>
29