1 <?xml version="1.0" encoding="UTF-8"?>
3 xmlns="http://xmlns.jcp.org/xml/ns/persistence"
4 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5 xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd"
8 <persistence-unit name="annotated">
9 <description>Classes are mapped with annotations</description>
11 <property name="javax.persistence.jdbc.driver" value="org.h2.Driver"/>
12 <property name="javax.persistence.jdbc.user" value="sa"/>
13 <property name="javax.persistence.jdbc.password" value=""/>
14 <property name="javax.persistence.jdbc.url" value="jdbc:h2:mem:"/>
15 <property name="hibernate.dialect" value="org.hibernate.dialect.H2Dialect"/>
16 <property name="hibernate.hbm2ddl.auto" value="create"/>
17 <property name="hibernate.show_sql" value="true"/>
21 <persistence-unit name="xml">
22 <description>Classes are mapped with XML-configuration-files</description>
23 <mapping-file>META-INF/mapping.xml</mapping-file>
24 <exclude-unlisted-classes>true</exclude-unlisted-classes>
26 <property name="javax.persistence.jdbc.driver" value="org.h2.Driver"/>
27 <property name="javax.persistence.jdbc.user" value="sa"/>
28 <property name="javax.persistence.jdbc.password" value=""/>
29 <property name="javax.persistence.jdbc.url" value="jdbc:h2:mem:"/>
30 <property name="hibernate.dialect" value="org.hibernate.dialect.H2Dialect"/>
31 <property name="hibernate.hbm2ddl.auto" value="create"/>
32 <property name="hibernate.show_sql" value="true"/>