Jean-Francois Leveque

Configuration persistence H2 (refactoring nommage)

...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
2 <persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" 2 <persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence"
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4 xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"> 4 xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
5 - <persistence-unit name="book-pu" transaction-type="JTA"> 5 + <persistence-unit name="h2-pu" transaction-type="JTA">
6 <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider> 6 <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
7 - <jta-data-source>bookDatabase</jta-data-source> 7 + <jta-data-source>H2Database</jta-data-source>
8 <exclude-unlisted-classes>false</exclude-unlisted-classes> 8 <exclude-unlisted-classes>false</exclude-unlisted-classes>
9 <properties> 9 <properties>
10 <property name="hibernate.hbm2ddl.auto" value="create-drop" /> 10 <property name="hibernate.hbm2ddl.auto" value="create-drop" />
......