/[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 523 - (show annotations)
Mon May 19 16:41:03 2008 UTC (12 years, 6 months ago) by bourges.laurent
File MIME type: text/xml
File size: 3412 byte(s)
- added JAXBFactory to have a simple API to deal with JAXB
- JPA log level in jpa-config.properties
- less debug logs
- fixed equals methods in data types / Object types (+ isDeep)
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
23 <!--
24 - none – do not generate DDL; no schema is generated.
25 - create-tables – create DDL for non-existent tables; leave existing tables unchanged (see also eclipselink.create-ddl-jdbc-file-name).
26 - drop-and-create-tables – create DDL for all tables; drop all existing tables (see also eclipselink.create-ddl-jdbc-file-name and eclipselink.drop-ddl-jdbc-file-name).
27 If you are using persistence in a Java SE environment and would like to create the DDL files without creating tables,
28 additionally define a Java system property INTERACT_WITH_DB and set its value to false.
29 -->
30 <property name="eclipselink.ddl-generation" value="create-tables"/>
31 <property name="eclipselink.ddl-generation.output-mode" value="both"/>
32
33 <!-- weaving -->
34 <property name="persistence.tools.weaving" value="true"/>
35 <property name="persistence.tools.weaving.lazy" value="true"/>
36 <property name="persistence.tools.weaving.changetracking" value="true"/>
37 <property name="persistence.tools.weaving.fetchgroups" value="true"/>
38
39 <!-- profiler -->
40 <property name="eclipselink.profiler" value="PerformanceProfiler"/>
41
42 <!-- jdbc options -->
43 <property name="eclipselink.jdbc.native-sql" value="true"/>
44 <!-- <property name="eclipselink.jdbc.batch-writing" value="JDBC"/> -->
45
46 <property name="eclipselink.jdbc.cache-statements" value="true"/>
47 <property name="eclipselink.jdbc.cache-statements.size" value="100"/>
48
49 <property name="eclipselink.flush-clear.cache" value="DropInvalidate"/>
50
51 <!-- logging system generic properties -->
52 <property name="eclipselink.logging.timestamp" value="true"/>
53 <property name="eclipselink.logging.thread" value="true"/>
54 <property name="eclipselink.logging.session" value="true"/>
55
56 <!-- debug : forces eclipselink to log exceptions before throwing them -->
57 <property name="eclipselink.logging.exceptions" value="false"/>
58
59
60 <!-- cache : NONE, Full, HardWeak, SoftWeak, Weak : -->
61 <property name="eclipselink.cache.type.default" value="HardWeak"/>
62 <property name="eclipselink.cache.size.default" value="5000"/>
63 <property name="eclipselink.cache.shared.default" value="true"/>
64
65 <!-- entity cache : NONE, Full, HardWeak, SoftWeak, Weak : -->
66 </properties>
67 </persistence-unit>
68 </persistence>

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