Advertisement
Guest User

persistence.xml

a guest
Feb 3rd, 2019
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.19 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <persistence xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3.              xmlns="http://xmlns.jcp.org/xml/ns/persistence"
  4.              xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence   http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd" version="2.1">
  5.     <persistence-unit name="chyshka" transaction-type="RESOURCE_LOCAL">
  6.         <properties>
  7.             <property name = "hibernate.connection.url" value="jdbc:mysql://localhost:3306/chushka_peppers_db?useSSL=false&amp;createDatabaseIfNotExist=true&amp;serverTimezone=UTC"/>
  8.             <property name = "hibernate.connection.driver_class" value="com.mysql.jdbc.Driver"/>
  9.             <property name = "hibernate.connection.username" value="root"/>
  10.             <property name = "hibernate.connection.password" value=""/>
  11.             <property name = "hibernate.dialect" value="org.hibernate.dialect.MariaDBDialect"/>
  12.             <property name = "hibernate.hbm2ddl.auto" value="update"/>
  13.             <property name = "hibernate.show_sql" value = "true" />
  14.             <property name = "hibernate.format_sql" value = "true" />
  15.         </properties>
  16.     </persistence-unit>
  17. </persistence>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement