Skip to content

Instantly share code, notes, and snippets.

@jeffersonchaves
Last active May 22, 2023 13:40
Show Gist options
  • Save jeffersonchaves/46e7edef7529563384340525724c6244 to your computer and use it in GitHub Desktop.
Save jeffersonchaves/46e7edef7529563384340525724c6244 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="http://xmlns.jcp.org/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence
http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd"
version="2.1">
<persistence-unit name="**********">
<properties>
<property name="jakarta.persistence.jdbc.url" value="jdbc:mysql://localhost/***********?useSSL=false&amp;createDatabaseIfNotExist=true&amp;serverTimezone=UTC" />
<property name="jakarta.persistence.jdbc.driver" value="com.mysql.jdbc.Driver" />
<property name="jakarta.persistence.jdbc.user" value="*********" />
<property name="jakarta.persistence.jdbc.password" value="*********" />
<property name="jakarta.persistence.schema-generation.database.action" value="update"/>
<!--
Opções:
update
create
drop-and-create
-->
<property name="hibernate.show_sql" value="true" />
<property name="hibernate.format_sql" value="true" />
</properties>
</persistence-unit>
</persistence>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment