Created
October 24, 2016 20:00
-
-
Save peterszatmary/b714f49287c2867d445030f8aa1f129e to your computer and use it in GitHub Desktop.
Hibernate configuration xml file for testing with H2 in memory database.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--?xml version="1.0" encoding="UTF-8"?--> | |
<hibernate-configuration> | |
<session-factory> | |
<property name="hibernate.connection.driver_class">org.h2.Driver</property> | |
<property name="hibernate.connection.username">sa</property> | |
<property name="hibernate.connection.password"></property> | |
<property name="hibernate.connection.url">jdbc:h2:mem:test</property> | |
<property name="hibernate.dialect">org.hibernate.dialect.H2Dialect</property> | |
<property name="show_sql">true</property> | |
<property name="connection.pool_size">5</property> | |
<property name="hibernate.id.new_generator_mappings">false</property> | |
<property name="hibernate.hbm2ddl.auto">create</property><!-- creates schema from entities each app deploy --> | |
<!-- here all entities will come --> | |
<mapping class="core.db.entity.Office"/> | |
<mapping class="core.db.entity.User"/> | |
<mapping class="core.db.entity.Project"/> | |
<mapping class="core.db.entity.ExternalProject"/> | |
<mapping class="core.db.entity.InternalProject"/> | |
</session-factory> | |
</hibernate-configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment