/[volute]/trunk/projects/theory/snapdm/res/persistence.xml
ViewVC logotype

Contents of /trunk/projects/theory/snapdm/res/persistence.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 360 - (show annotations)
Mon May 5 18:18:10 2008 UTC (12 years, 6 months ago) by bourges.laurent
File MIME type: text/xml
File size: 3393 byte(s)
runtime properties are given in properties/jpa-config.properties (jdbc.url, username, password, database)
persistence.xml is generated from an xml template in res/persistence.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <persistence xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3 xmlns="http://java.sun.com/xml/ns/persistence"
4 version="1.0"
5 xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
6
7 <!--
8 This file persistence.xml contains default properties for JPA (eclipselink provider).
9 These properties can be overriden at runtime
10 -->
11 <persistence-unit name="SimDbPU" transaction-type="RESOURCE_LOCAL">
12 <description>
13 This unit manages SimDb model.
14 </description>
15 <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
16 <properties>
17
18 <property name="eclipselink.target-server" value="None"/>
19
20 <!-- ddl generation -->
21 <property name="eclipselink.application-location" value="."/>
22 <property name="eclipselink.ddl-generation" value="drop-and-create-tables"/>
23 <property name="eclipselink.ddl-generation.output-mode" value="both"/>
24
25 <!-- weaving -->
26 <property name="persistence.tools.weaving" value="true"/>
27 <property name="persistence.tools.weaving.lazy" value="true"/>
28 <property name="persistence.tools.weaving.changetracking" value="true"/>
29 <property name="persistence.tools.weaving.fetchgroups" value="true"/>
30
31 <!-- profiler -->
32 <property name="eclipselink.profiler" value="PerformanceProfiler"/>
33
34 <!-- jdbc options -->
35 <property name="eclipselink.jdbc.native-sql" value="true"/>
36 <property name="eclipselink.jdbc.batch-writing" value="JDBC"/>
37
38 <property name="eclipselink.jdbc.cache-statements" value="true"/>
39 <property name="eclipselink.jdbc.cache-statements.size" value="100"/>
40
41 <property name="eclipselink.flush-clear.cache" value="DropInvalidate"/>
42
43 <!--
44 Logging level :
45 OFF – disables logging
46 SEVERE – logs exceptions indicating EclipseLink cannot continue, as well as any exceptions generated during login. This includes a stack trace.
47 WARNING – logs exceptions that do not force EclipseLink to stop, including all exceptions not logged with severe level. This does not include a stack trace.
48 INFO – logs the login/logout per sever session, including the user name. After acquiring the session, detailed information is logged.
49 CONFIG – logs only login, JDBC connection, and database information.
50 FINE – logs SQL.
51 FINER – similar to warning. Includes stack trace.
52 FINEST – includes additional low level information.
53 -->
54 <property name="eclipselink.logging.level" value="FINEST"/>
55
56 <property name="eclipselink.logging.timestamp" value="true"/>
57 <property name="eclipselink.logging.thread" value="true"/>
58 <property name="eclipselink.logging.session" value="true"/>
59
60 <property name="eclipselink.logging.exceptions" value="true"/>
61
62
63 <!-- cache : NONE, Full, HardWeak, SoftWeak, Weak : -->
64 <property name="eclipselink.cache.type.default" value="HardWeak"/>
65 <property name="eclipselink.cache.size.default" value="5000"/>
66 <property name="eclipselink.cache.shared.default" value="true"/>
67
68 <!-- entity cache : NONE, Full, HardWeak, SoftWeak, Weak : -->
69 </properties>
70 </persistence-unit>
71 </persistence>

msdemlei@ari.uni-heidelberg.de
ViewVC Help
Powered by ViewVC 1.1.26