Advertisement
Guest User

Untitled

a guest
Apr 8th, 2016
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. <session-factory>
  2.  
  3.  
  4.  
  5. <!-- Database connection settings -->
  6. <property name="connection.driver_class">org.postgresql.Driver</property>
  7. <property name="connection.url">jdbc:postgresql://localhost:5432/hibernatedb</property>
  8. <property name="connection.username">postgres</property>
  9. <property name="connection.password"/>shaher</property>
  10.  
  11. <!-- JDBC connection pool (use the built-in) -->
  12. <property name="connection.pool_size">1</property>
  13.  
  14. <!-- SQL dialect -->
  15. <property name="dialect">org.hibernate.dialect.PostgreSQLDialect</property>
  16.  
  17. <!-- Disable the second-level cache -->
  18. <property name="cache.provider_class">org.hibernate.cache.internal.NoCacheProvider</property>
  19.  
  20. <!-- Echo all executed SQL to stdout -->
  21. <property name="show_sql">true</property>
  22.  
  23. <!-- Drop and re-create the database schema on startup -->
  24. <property name="hbm2ddl.auto">create</property>
  25.  
  26. <mapping class="org.shaher.hiber.dto.UserDetails"/>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement