<!DOCTYPE hibernate-configuration SYSTEM "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> <hibernate-configuration> <session-factory> <property name="hibernate.connection.driver_class"> org.apache.derby.jdbc.EmbeddedDriver </property> <property name="hibernate.dialect"> org.hibernate.dialect.DerbyDialect </property> <property name="hibernate.hbm2ddl.auto">update</property> <!-- Use the C3P0 connection pool provider --> <property name="hibernate.c3p0.min_size">1</property> <property name="hibernate.c3p0.max_size">2</property> <property name="hibernate.c3p0.timeout">100</property> <property name="hibernate.c3p0.max_statements">50</property> <property name="hibernate.c3p0.idle_test_period">300</property> <!-- Show and print nice SQL on stdout --> <property name="show_sql">false</property> <property name="format_sql">false</property> </session-factory> </hibernate-configuration>