Created
October 24, 2016 20:02
-
-
Save peterszatmary/30d2bf7028204959125683d5d8ea7e90 to your computer and use it in GitHub Desktop.
Hibernate configuration xml file for dev with MySQL 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">com.mysql.jdbc.Driver</property> | |
<property name="hibernate.connection.username">root</property> | |
<property name="hibernate.connection.password">newlife</property> | |
<property name="hibernate.connection.url">jdbc:mysql://localhost:3306/evidence_db</property> | |
<property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</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