<?xml version="1.0" encoding="UTF-8"?>
<persistence
- xmlns="http://java.sun.com/xml/ns/persistence"
+ xmlns="http://xmlns.jcp.org/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- version="1.0">
+ 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="test">
- <class>de.juplo.jpa.converters.OffsetDateTime</class>
- <class>de.juplo.jpa.converters.ZonedDateTime</class>
+ <persistence-unit name="annotated">
+ <description>Classes are mapped with annotations</description>
<properties>
<property name="javax.persistence.jdbc.driver" value="org.h2.Driver"/>
<property name="javax.persistence.jdbc.user" value="sa"/>
<property name="javax.persistence.jdbc.url" value="jdbc:h2:mem:"/>
<property name="hibernate.dialect" value="org.hibernate.dialect.H2Dialect"/>
<property name="hibernate.hbm2ddl.auto" value="create"/>
+ <property name="hibernate.show_sql" value="true"/>
+ </properties>
+ </persistence-unit>
+
+ <persistence-unit name="xml">
+ <description>Classes are mapped with XML-configuration-files</description>
+ <mapping-file>META-INF/mapping.xml</mapping-file>
+ <exclude-unlisted-classes>true</exclude-unlisted-classes>
+ <properties>
+ <property name="javax.persistence.jdbc.driver" value="org.h2.Driver"/>
+ <property name="javax.persistence.jdbc.user" value="sa"/>
+ <property name="javax.persistence.jdbc.password" value=""/>
+ <property name="javax.persistence.jdbc.url" value="jdbc:h2:mem:"/>
+ <property name="hibernate.dialect" value="org.hibernate.dialect.H2Dialect"/>
+ <property name="hibernate.hbm2ddl.auto" value="create"/>
+ <property name="hibernate.show_sql" value="true"/>
+ </properties>
+ </persistence-unit>
+
+ <persistence-unit name="data-model">
+ <description>Example, taken from the data-model package</description>
+ <mapping-file>META-INF/coordinates.xml</mapping-file>
+ <mapping-file>META-INF/address.xml</mapping-file>
+ <mapping-file>META-INF/link.xml</mapping-file>
+ <mapping-file>META-INF/email.xml</mapping-file>
+ <mapping-file>META-INF/number.xml</mapping-file>
+ <mapping-file>META-INF/openinghours.xml</mapping-file>
+ <mapping-file>META-INF/nodes.xml</mapping-file>
+ <mapping-file>META-INF/role.xml</mapping-file>
+ <mapping-file>META-INF/price.xml</mapping-file>
+ <mapping-file>META-INF/nodestate.xml</mapping-file>
+ <mapping-file>META-INF/dimensions.xml</mapping-file>
+ <mapping-file>META-INF/node.xml</mapping-file>
+ <mapping-file>META-INF/category.xml</mapping-file>
+ <mapping-file>META-INF/media.xml</mapping-file>
+ <mapping-file>META-INF/geoplace.xml</mapping-file>
+ <mapping-file>META-INF/country.xml</mapping-file>
+ <mapping-file>META-INF/state.xml</mapping-file>
+ <mapping-file>META-INF/city.xml</mapping-file>
+ <mapping-file>META-INF/district.xml</mapping-file>
+ <mapping-file>META-INF/region.xml</mapping-file>
+ <mapping-file>META-INF/legalperson.xml</mapping-file>
+ <mapping-file>META-INF/person.xml</mapping-file>
+ <mapping-file>META-INF/organization.xml</mapping-file>
+ <mapping-file>META-INF/group.xml</mapping-file>
+ <mapping-file>META-INF/exhibition.xml</mapping-file>
+ <mapping-file>META-INF/custom.xml</mapping-file>
+ <mapping-file>META-INF/place.xml</mapping-file>
+ <mapping-file>META-INF/venue.xml</mapping-file>
+ <mapping-file>META-INF/location.xml</mapping-file>
+ <mapping-file>META-INF/subunit.xml</mapping-file>
+ <mapping-file>META-INF/event.xml</mapping-file>
+ <mapping-file>META-INF/date.xml</mapping-file>
+ <exclude-unlisted-classes>true</exclude-unlisted-classes>
+ <properties>
+ <property name="javax.persistence.jdbc.driver" value="org.h2.Driver"/>
+ <property name="javax.persistence.jdbc.user" value="sa"/>
+ <property name="javax.persistence.jdbc.password" value=""/>
+ <property name="javax.persistence.jdbc.url" value="jdbc:h2:mem:"/>
+ <property name="hibernate.dialect" value="org.hibernate.dialect.H2Dialect"/>
+ <property name="hibernate.hbm2ddl.auto" value="create"/>
+ <property name="hibernate.show_sql" value="true"/>
</properties>
</persistence-unit>