Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE hibernate-configuration PUBLIC
- "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
- "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
- <hibernate-configuration>
- <session-factory>
- <!-- Database connection settings -->
- <property name="connection.driver_class">org.hsqldb.jdbcDriver</property>
- <property name="connection.url">jdbc:hsqldb:mem:test</property>
- <property name="connection.username">SA</property>
- <property name="connection.password"></property>
- <!-- JDBC connection pool (use the built-in) -->
- <property name="connection.pool_size">1</property>
- <!-- SQL dialect -->
- <property name="dialect">org.hibernate.dialect.HSQLDialect</property>
- <!-- Echo all executed SQL to stdout -->
- <property name="show_sql">true</property>
- <property name="hibernate.show_sql">true</property>
- <!-- Drop and re-create the database schema on startup
- <property name="hbm2ddl.auto">create</property>-->
- <!-- Mapping files -->
- <mapping resource="User.hbm.xml"/>
- <mapping resource="Disk.hbm.xml"/>
- <mapping resource="Takenitem.hbm.xml"/>
- </session-factory>
- </hibernate-configuration>
- jdbc:hsqldb:file:путь_к_файлам_БД
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement