Advertisement
Guest User

Untitled

a guest
Mar 2nd, 2016
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. <!DOCTYPE hibernate-configuration PUBLIC
  2. "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
  3. "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
  4.  
  5. <hibernate-configuration>
  6. <session-factory>
  7. <!-- Database connection settings -->
  8. <property name="connection.driver_class">org.hsqldb.jdbcDriver</property>
  9. <property name="connection.url">jdbc:hsqldb:mem:test</property>
  10. <property name="connection.username">SA</property>
  11. <property name="connection.password"></property>
  12.  
  13. <!-- JDBC connection pool (use the built-in) -->
  14. <property name="connection.pool_size">1</property>
  15.  
  16. <!-- SQL dialect -->
  17. <property name="dialect">org.hibernate.dialect.HSQLDialect</property>
  18.  
  19. <!-- Echo all executed SQL to stdout -->
  20. <property name="show_sql">true</property>
  21. <property name="hibernate.show_sql">true</property>
  22. <!-- Drop and re-create the database schema on startup
  23. <property name="hbm2ddl.auto">create</property>-->
  24.  
  25. <!-- Mapping files -->
  26. <mapping resource="User.hbm.xml"/>
  27. <mapping resource="Disk.hbm.xml"/>
  28. <mapping resource="Takenitem.hbm.xml"/>
  29. </session-factory>
  30. </hibernate-configuration>
  31.  
  32. jdbc:hsqldb:file:путь_к_файлам_БД
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement