Advertisement
Guest User

Untitled

a guest
Jan 27th, 2017
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. <hibernate-configuration>
  2.  
  3. <session-factory>
  4.  
  5. <!-- Database connection settings -->
  6. <property name = "hbm2ddl.auto">create</property>
  7. <property name = "dialect">org.hibernate.dialect.MySQLDialect</property>
  8. <property name = "connection.url">jdbc:mysql://localhost:3306/hibernate_test"</property>
  9. <property name = "connection.username">root</property>
  10. <property name = "connection.password">mysql123</property>
  11. <property name = "connection.driver_class">com.mysql.jdbc.Driver</property>
  12.  
  13. <mapping resource="employee.hbm.xml"/>
  14. </session-factory>
  15.  
  16. </hibernate-configuration>
  17.  
  18. <hibernate-mapping>
  19. <class name = "com.somnath.test.Employee" table = "employee_details">
  20. <id name = "employeeID">
  21. <generator class ="assigned"></generator>
  22. </id>
  23. <property name="firstName"></property>
  24. <property name="lastName"></property>
  25. </class>
  26. </hibernate-mapping>
  27.  
  28. Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown database 'hibernate_test"'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement