Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE hibernate-configuration PUBLIC
- "-//Hibernate/Hibernate Configuration DTD 5.3//EN"
- "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
- <hibernate-configuration>
- <session-factory>
- <property name="hbm2ddl.auto">update
- </property> <!--Set database creation type. Create(always creates new one), update, create-drop, etc.-->
- <property name="dialect">org.hibernate.dialect.MySQL8Dialect
- </property> <!--Which type of SQL Dialect. Supports different database dialects, like MSSQL, Oracle, MySQL, etc.-->
- <property name="connection.url">jdbc:mysql://localhost:3306/stolz_generator?serverTimezone=UTC
- </property> <!--Using JDBC to connect to the database-->
- <property name="connection.username">root</property> <!--Database username-->
- <property name="connection.password">stefan</property> <!-- Database password-->
- <property name="connection.driver_class">com.mysql.jdbc.Driver
- </property> <!--What kind of driver connectivity driver is/should being/be used-->
- <property name="show_sql">true</property> <!--show the SQL statements in the console-->
- <property name="format_sql">true</property> <!--pretty print the sql statements-->
- <mapping class=""/> <!--which classes use the JPA annotations-->
- </session-factory>
- </hibernate-configuration>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement