/[projects]/miscJava/HiberTest1/Hibernate.cfg.xml
ViewVC logotype

Annotation of /miscJava/HiberTest1/Hibernate.cfg.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 599 - (hide annotations) (download) (as text)
Sun Feb 21 19:03:46 2010 UTC (14 years, 3 months ago) by torben
File MIME type: text/xml
File size: 1309 byte(s)
added some hibernate test code
1 torben 599 <?xml version="1.0" encoding="UTF-8"?>
2     <!DOCTYPE hibernate-configuration PUBLIC
3     "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
4     "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
5     <hibernate-configuration>
6     <session-factory>
7     <!-- Database connection settings -->
8     <property name="connection.driver_class">org.postgresql.Driver</property>
9     <property name="connection.url">jdbc:postgresql://192.168.10.5/test</property>
10     <property name="connection.username">torben</property>
11     <property name="connection.password">nielsen</property>
12     <!-- JDBC connection pool (use the built-in) -->
13     <property name="connection.pool_size">1</property>
14     <!-- SQL dialect -->
15     <property name="dialect">org.hibernate.dialect.PostgreSQLDialect</property>
16     <!-- Enable Hibernate's automatic session context management -->
17     <property name="current_session_context_class">thread</property>
18     <!-- Disable the second-level cache -->
19     <property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property>
20     <!-- Echo all executed SQL to stdout -->
21     <property name="show_sql">true</property>
22     <!-- Drop and re-create the database schema on startup -->
23     <property name="hbm2ddl.auto">none</property>
24    
25     <mapping class="dk.thoerup.hibertest1.Employee"/>
26    
27     </session-factory>
28     </hibernate-configuration>

  ViewVC Help
Powered by ViewVC 1.1.20