Skip to content

Instantly share code, notes, and snippets.

@sdeluce
Created October 29, 2017 14:27
Show Gist options
  • Save sdeluce/bfd79bf5cf8b94b98fdf77f64a6fc01f to your computer and use it in GitHub Desktop.
Save sdeluce/bfd79bf5cf8b94b98fdf77f64a6fc01f to your computer and use it in GitHub Desktop.
<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_0.xsd"
version="2.0" xmlns="http://xmlns.jcp.org/xml/ns/persistence">
<persistence-unit name="Test" transaction-type="RESOURCE_LOCAL">
<class>com.polytech.hibernate_tp.model.Employeur</class>
<properties>
<!-- Configuring JDBC properties -->
<property name="javax.persistence.jdbc.url" value="jdbc:mysql://localhost:3306/SGBD_hibernate_tp6" />
<property name="javax.persistence.jdbc.user" value="root" />
<property name="javax.persistence.jdbc.password" value="" />
<property name="javax.persistence.jdbc.driver" value="com.mysql.jdbc.Driver" />
<!-- Hibernate properties -->
<property name="hibernate.show_sql" value="true" />
<property name="hibernate.connection.pool_size" value="10" />
<property name="hibernate.dialect" value="org.hibernate.dialect.MYSQL5Dialect" />
<property name="hibernate.show_sql" value="true" />
<property name="hibernate.hbm2ddl.auto" value="create" />
</properties>
</persistence-unit>
</persistence>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment