Advertisement
Guest User

Untitled

a guest
Dec 27th, 2016
97
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. <!DOCTYPE hibernate-configuration PUBLIC
  3. "-//Hibernate/Hibernate Configuration DTD//EN"
  4. "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
  5. <hibernate-configuration>
  6. <session-factory>
  7.  
  8. <property name="connection.driver_class">com.mysql.jdbc.Driver</property>
  9. <property name="connection.url">jdbc:mysql://localhost:3306/shop</property>
  10. <property name="hibernate.connection.username">user</property>
  11. <property name="hibernate.connection.password">user1325user</property>
  12.  
  13. <property name="hibernate.current_session_context_class">thread</property>
  14.  
  15. <!-- Print executed SQL to stdout -->
  16. <property name="show_sql">false</property>
  17.  
  18. <!-- Drop and re-create all database on startup -->
  19. <property name="hibernate.hbm2ddl.auto">update</property>
  20.  
  21. <mapping class="entities.Book"/>
  22. <mapping class="entities.Stationery"/>
  23. <!-- DB schema will be updated if needed -->
  24.  
  25. </session-factory>
  26. </hibernate-configuration>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement