Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <persistence xmlns="http://java.sun.com/xml/ns/persistence"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
- http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
- version="2.0">
- <persistence-unit name="persistenceUnit1">
- <properties>
- <property name="hibernate.archive.autodetection" value="class" />
- <!-- <property name="hibernate.show_sql" value="true" /> -->
- <property name="hibernate.format_sql" value="true" />
- <!-- Configuration de la BDD -->
- <property name="javax.persistence.jdbc.driver" value="com.mysql.jdbc.Driver" />
- <property name="javax.persistence.jdbc.url" value="jdbc:mysql://localhost/tpjpa" />
- <property name="javax.persistence.jdbc.user" value="root" />
- <property name="javax.persistence.jdbc.password" value="123456" />
- <!-- Spécifie le 'dialecte' SQL utilisé pour communiquer avec la BDD -->
- <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect" />
- <!-- Indique a Hibernate de (re-)créer la BDD au lancement de l'application -->
- <property name="hibernate.hbm2ddl.auto" value="create" />
- </properties>
- </persistence-unit>
- </persistence>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement