Advertisement
Guest User

Untitled

a guest
Dec 27th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. <?xml version = "1.0" encoding = "utf-8"?>
  2. <!DOCTYPE hibernate-configuration SYSTEM
  3. "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
  4. <hibernate-configuration>
  5. <session-factory>
  6.  
  7. <property name="dialect">
  8. org.hibernate.dialect.MySQLDialect
  9. </property>
  10.  
  11. <property name = "hibernate.connection.driver_class">
  12. com.mysql.jdbc.Driver
  13. </property>
  14.  
  15. <!-- Assume test is the database name -->
  16.  
  17. <property name="hibernate.connection.url">
  18. jdbc:mysql://localhost/hibernate
  19. </property>
  20.  
  21. <property name = "hibernate.connection.username">
  22. root
  23. </property>
  24.  
  25. <property name = "hibernate.connection.password">
  26. 12345
  27. </property>
  28.  
  29. <property name="hibernate.show_sql">true</property>
  30. <property name="hibernate.hbm2ddl.auto">create</property>
  31.  
  32. <!-- List of XML mapping files -->
  33. <mapping resource = "Employee.hbm.xml"/>
  34. </session-factory>
  35. </hibernate-configuration>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement