Guest User

Untitled

a guest
Jan 19th, 2019
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. <hibernate-configuration>
  2. <session-factory>
  3. <!-- Database connection settings -->
  4. <property name="connection.driver_class">org.hsqldb.jdbcDriver</property>
  5. <property name="connection.url">jdbc:hsqldb:mem:testdb</property>
  6. <property name="connection.username">java</property>
  7. <property name="connection.password"></property>
  8.  
  9. <!-- JDBC connection pool (use the built-in) -->
  10. <property name="connection.pool_size">10</property>
  11.  
  12. <!-- SQL dialect -->
  13. <property name="dialect">org.hibernate.dialect.HSQLDialect</property>
  14.  
  15. <!-- Enable Hibernate's current session context -->
  16. <property name="current_session_context_class">org.hibernate.context.ManagedSessionContext</property>
  17.  
  18. <property name="hibernate.cache.use_second_level_cache">false</property>
  19. <property name="hibernate.cache.use_query_cache">false</property>
  20.  
  21. <!-- Disable the second-level cache -->
  22. <property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property>
  23. <!-- Echo all executed SQL to stdout -->
  24. <property name="show_sql">true</property>
  25.  
  26. <property name="hbm2ddl.auto">create</property>
  27.  
  28. <!-- the annotated entity class -->
  29. <mapping class = "com.javaapp.addressbook.dto.UserDetails"/>
  30.  
  31. </session-factory>
  32.  
  33. <property name="connection.url">jdbc:hsqldb:mem:testdb</property>
  34.  
  35. <property name="connection.url">jdbc:hsqldb:hsql://localhost/testdb</property>
Add Comment
Please, Sign In to add comment