Advertisement
Guest User

hibernate.cfg.xml

a guest
Mar 25th, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE hibernate-configuration PUBLIC
  3. "-//Hibernate/Hibernate Configuration DTD 5.3//EN"
  4. "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
  5. <hibernate-configuration>
  6. <session-factory>
  7.  
  8. <property name="hbm2ddl.auto">update
  9. </property> <!--Set database creation type. Create(always creates new one), update, create-drop, etc.-->
  10. <property name="dialect">org.hibernate.dialect.MySQL8Dialect
  11. </property> <!--Which type of SQL Dialect. Supports different database dialects, like MSSQL, Oracle, MySQL, etc.-->
  12. <property name="connection.url">jdbc:mysql://localhost:3306/stolz_generator?serverTimezone=UTC
  13. </property> <!--Using JDBC to connect to the database-->
  14. <property name="connection.username">root</property> <!--Database username-->
  15. <property name="connection.password">stefan</property> <!-- Database password-->
  16. <property name="connection.driver_class">com.mysql.jdbc.Driver
  17. </property> <!--What kind of driver connectivity driver is/should being/be used-->
  18. <property name="show_sql">true</property> <!--show the SQL statements in the console-->
  19. <property name="format_sql">true</property> <!--pretty print the sql statements-->
  20. <mapping class=""/> <!--which classes use the JPA annotations-->
  21.  
  22. </session-factory>
  23. </hibernate-configuration>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement