Use JUnit assertions in tests
[aquarium] / model / src / main / resources / META-INF / persistence.xml
1 <persistence xmlns="http://java.sun.com/xml/ns/persistence"
2              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3              xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
4      http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
5              version="1.0">
6
7
8     <persistence-unit name="aquarium" transaction-type="RESOURCE_LOCAL">
9         <class>gr.grnet.aquarium.model.Entity</class>
10         <class>gr.grnet.aquarium.model.Group</class>
11         <class>gr.grnet.aquarium.model.User</class>
12         <class>gr.grnet.aquarium.model.Organization</class>
13         <properties>
14
15             <property name="eclipselink.target-database" value="org.eclipse.persistence.platform.database.H2Platform"/>
16             <property name="javax.persistence.jdbc.driver" value="org.h2.Driver"/>
17             <property name="javax.persistence.jdbc.url" value="jdbc:h2:database"/>
18             <property name="javax.persistence.jdbc.password" value=""/>
19             <property name="javax.persistence.jdbc.user" value="scott"/>
20
21             <!--<property name="eclipselink.target-database" value="org.eclipse.persistence.platform.database.MySQLPlatform"/>
22             <property name="javax.persistence.jdbc.driver" value="com.mysql.jdbc.Driver"/>
23             <property name="javax.persistence.jdbc.url" value="jdbc:mysql://localhost/aquarium"/>
24             <property name="javax.persistence.jdbc.password" value="aquarium"/>
25             <property name="javax.persistence.jdbc.user" value="aquarium"/>-->
26
27             <!-- Logging -->
28             <property name="eclipselink.logging.level" value="FINE"/>
29             <property name="eclipselink.logging.timestamp" value="true"/>
30             <property name="eclipselink.logging.session" value="true"/>
31             <property name="eclipselink.logging.thread" value="false"/>
32
33             <property name="eclipselink.ddl-generation" value="create-tables"/>
34             <property name="eclipselink.ddl-generation.output-mode" value="database"/>
35         </properties>
36     </persistence-unit>
37
38 </persistence>