Advertisement
Guest User

Untitled

a guest
Oct 24th, 2016
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. <!--?xml version="1.0" encoding="UTF-8"?-->
  2.  
  3. <hibernate-configuration>
  4. <session-factory>
  5. <property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
  6. <property name="hibernate.connection.username">root</property>
  7. <property name="hibernate.connection.password">newlife</property>
  8. <property name="hibernate.connection.url">jdbc:mysql://localhost:3306/evidence_db</property>
  9. <property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>
  10. <property name="show_sql">true</property>
  11. <property name="connection.pool_size">5</property>
  12. <property name="hibernate.id.new_generator_mappings">false</property>
  13. <property name="hibernate.hbm2ddl.auto">create</property><!-- creates schema from entities each app deploy -->
  14.  
  15. <!-- here all entities will come -->
  16. <mapping class="core.db.entity.Office"/>
  17. <mapping class="core.db.entity.User"/>
  18. <mapping class="core.db.entity.Project"/>
  19. <mapping class="core.db.entity.ExternalProject"/>
  20. <mapping class="core.db.entity.InternalProject"/>
  21. </session-factory>
  22. </hibernate-configuration>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement