tdmcginley

hibernate.cfg.xml

May 13th, 2011
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. <?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">oracle.jdbc.pool.OracleDataSource</property>
  9. <property name="connection.url">jdbc:oracle:thin:@localhost:1521:XE</property>
  10. <property name="connection.username">survey</property>
  11. <property name="connection.password">******</property>
  12. <!-- property name="dialect">org.hibernate.dialect.OracleDialect</property> -->
  13.  
  14. <!--
  15. Enable c3p0 connection pooling, because hibernate pooling is not
  16. prod-ready. Apparently connection.provider_class is needed in
  17. hibernate 3+
  18. -->
  19. <property name="connection.provider_class">org.hibernate.connection.C3P0ConnectionProvider</property>
  20. <property name="c3p0.max_size">100</property>
  21. <property name="c3p0.min_size">1</property>
  22. <property name="c3p0.idle_test_period">30</property>
  23.  
  24. <!-- Echo all executed SQL to stdout for debugging -->
  25. <property name="show_sql">true</property>
  26.  
  27. <!-- All the entity classes for hibernate to check for annotations here
  28. -->
  29. <mapping class="data.Forms" />
  30. <mapping class="data.Questions" />
  31. </session-factory>
  32. </hibernate-configuration>
Advertisement
Add Comment
Please, Sign In to add comment