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"/>
36 <persistence-unit name="data-model">
37 <description>Example, taken from the data-model package</description>
38 <mapping-file>META-INF/coordinates.xml</mapping-file>
39 <mapping-file>META-INF/address.xml</mapping-file>
40 <mapping-file>META-INF/link.xml</mapping-file>
41 <mapping-file>META-INF/email.xml</mapping-file>
42 <mapping-file>META-INF/number.xml</mapping-file>
43 <mapping-file>META-INF/openinghours.xml</mapping-file>
44 <mapping-file>META-INF/nodes.xml</mapping-file>
45 <mapping-file>META-INF/role.xml</mapping-file>
46 <mapping-file>META-INF/price.xml</mapping-file>
47 <mapping-file>META-INF/nodestate.xml</mapping-file>
48 <mapping-file>META-INF/dimensions.xml</mapping-file>
49 <mapping-file>META-INF/node.xml</mapping-file>
50 <mapping-file>META-INF/category.xml</mapping-file>
51 <mapping-file>META-INF/media.xml</mapping-file>
52 <mapping-file>META-INF/geoplace.xml</mapping-file>
53 <mapping-file>META-INF/country.xml</mapping-file>
54 <mapping-file>META-INF/state.xml</mapping-file>
55 <mapping-file>META-INF/city.xml</mapping-file>
56 <mapping-file>META-INF/district.xml</mapping-file>
57 <mapping-file>META-INF/region.xml</mapping-file>
58 <mapping-file>META-INF/legalperson.xml</mapping-file>
59 <mapping-file>META-INF/person.xml</mapping-file>
60 <mapping-file>META-INF/organization.xml</mapping-file>
61 <mapping-file>META-INF/group.xml</mapping-file>
62 <mapping-file>META-INF/exhibition.xml</mapping-file>
63 <mapping-file>META-INF/custom.xml</mapping-file>
64 <mapping-file>META-INF/place.xml</mapping-file>
65 <mapping-file>META-INF/venue.xml</mapping-file>
66 <mapping-file>META-INF/location.xml</mapping-file>
67 <mapping-file>META-INF/subunit.xml</mapping-file>
68 <mapping-file>META-INF/event.xml</mapping-file>
69 <mapping-file>META-INF/date.xml</mapping-file>
70 <exclude-unlisted-classes>true</exclude-unlisted-classes>
72 <property name="javax.persistence.jdbc.driver" value="org.h2.Driver"/>
73 <property name="javax.persistence.jdbc.user" value="sa"/>
74 <property name="javax.persistence.jdbc.password" value=""/>
75 <property name="javax.persistence.jdbc.url" value="jdbc:h2:mem:"/>
76 <property name="hibernate.dialect" value="org.hibernate.dialect.H2Dialect"/>
77 <property name="hibernate.hbm2ddl.auto" value="create"/>
78 <property name="hibernate.show_sql" value="true"/>