Skip to main content
summaryrefslogtreecommitdiffstats
blob: fceaccdbbfd0b24173df966d1bea1c234fe9ffed (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
<?xml version="1.0" encoding="UTF-8" ?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xsi:schemaLocation="http://java.sun.com/xml/ns/persistence persistence_2_0.xsd"
                version="1.0">
    <persistence-unit name="database" transaction-type="RESOURCE_LOCAL">
        <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
        <class>model.Order</class>
        <class>model.OrderLine</class>
        <class>model.Customer</class>        
        <shared-cache-mode>NONE</shared-cache-mode>
        <properties>
            <!-- Change this to access your own database. -->
            <property name="javax.persistence.jdbc.driver" value="oracle.jdbc.OracleDriver" />
            <property name="javax.persistence.jdbc.url" value="jdbc:oracle:thin:@localhost:1521:orcl" />
            <property name="javax.persistence.jdbc.user" value="scott" />
            <property name="javax.persistence.jdbc.password" value="tiger" />
            <!--property name="javax.persistence.jdbc.driver" value="org.apache.derby.jdbc.EmbeddedDriver" />
            <property name="javax.persistence.jdbc.url" value="jdbc:derby:test;create=true" />
            <property name="javax.persistence.jdbc.user" value="" />
            <property name="javax.persistence.jdbc.password" value="" /-->
            <property name="eclipselink.ddl-generation" value="create-tables" />
            <property name="eclipselink.jdbc.cache-statements" value="true" />
            <property name="eclipselink.logging.level" value="off" />
            <property name="eclipselink.orm.validate.schema" value="true"/>
        </properties>
    </persistence-unit>
    <persistence-unit name="cache" transaction-type="RESOURCE_LOCAL">
        <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
        <class>model.Order</class>
        <class>model.OrderLine</class>
        <class>model.Customer</class>
        <properties>
            <!-- Change this to access your own database. -->
            <property name="javax.persistence.jdbc.driver" value="oracle.jdbc.OracleDriver" />
            <property name="javax.persistence.jdbc.url" value="jdbc:oracle:thin:@localhost:1521:orcl" />
            <property name="javax.persistence.jdbc.user" value="scott" />
            <property name="javax.persistence.jdbc.password" value="tiger" />
            <property name="eclipselink.ddl-generation" value="create-tables" />
            <property name="eclipselink.jdbc.cache-statements" value="true" />
            <property name="eclipselink.logging.level" value="off" />
            <property name="eclipselink.orm.validate.schema" value="true"/>
            <!--property name="eclipselink.logging.level" value="FINE" /-->
        </properties>
    </persistence-unit>
    <persistence-unit name="protected" transaction-type="RESOURCE_LOCAL">
        <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
        <class>model.Order</class>
        <class>model.OrderLine</class>
        <class>model.Customer</class>
        <mapping-file>META-INF/protected.xml</mapping-file>
        <properties>
            <!-- Change this to access your own database. -->
            <property name="javax.persistence.jdbc.driver" value="oracle.jdbc.OracleDriver" />
            <property name="javax.persistence.jdbc.url" value="jdbc:oracle:thin:@localhost:1521:orcl" />
            <property name="javax.persistence.jdbc.user" value="scott" />
            <property name="javax.persistence.jdbc.password" value="tiger" />
            <property name="eclipselink.ddl-generation" value="create-tables" />
            <property name="eclipselink.jdbc.cache-statements" value="true" />
            <property name="eclipselink.logging.level" value="off" />
            <property name="eclipselink.orm.validate.schema" value="true"/>
            <!--property name="eclipselink.logging.level" value="FINE" /-->
        </properties>
    </persistence-unit>
    <persistence-unit name="data-cache" transaction-type="RESOURCE_LOCAL">
        <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
        <class>model.Order</class>
        <class>model.OrderLine</class>
        <class>model.Customer</class>
        <mapping-file>META-INF/data-cache.xml</mapping-file>
        <properties>
            <!-- Change this to access your own database. -->
            <property name="javax.persistence.jdbc.driver" value="oracle.jdbc.OracleDriver" />
            <property name="javax.persistence.jdbc.url" value="jdbc:oracle:thin:@localhost:1521:orcl" />
            <property name="javax.persistence.jdbc.user" value="scott" />
            <property name="javax.persistence.jdbc.password" value="tiger" />
            <property name="eclipselink.ddl-generation" value="create-tables" />
            <property name="eclipselink.jdbc.cache-statements" value="true" />
            <property name="eclipselink.logging.level" value="off" />
            <property name="eclipselink.orm.validate.schema" value="true"/>
            <!--property name="eclipselink.logging.level" value="FINE" /-->
        </properties>
    </persistence-unit>
    <persistence-unit name="read-only" transaction-type="RESOURCE_LOCAL">
        <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
        <class>model.Order</class>
        <class>model.OrderLine</class>
        <class>model.Customer</class>
        <mapping-file>META-INF/read-only.xml</mapping-file>
        <properties>
            <!-- Change this to access your own database. -->
            <property name="javax.persistence.jdbc.driver" value="oracle.jdbc.OracleDriver" />
            <property name="javax.persistence.jdbc.url" value="jdbc:oracle:thin:@localhost:1521:orcl" />
            <property name="javax.persistence.jdbc.user" value="scott" />
            <property name="javax.persistence.jdbc.password" value="tiger" />
            <property name="eclipselink.ddl-generation" value="create-tables" />
            <property name="eclipselink.jdbc.cache-statements" value="true" />
            <property name="eclipselink.logging.level" value="off" />
            <property name="eclipselink.orm.validate.schema" value="true"/>
            <!--property name="eclipselink.logging.level" value="FINE" /-->
        </properties>
    </persistence-unit>
    <persistence-unit name="read-only-protected" transaction-type="RESOURCE_LOCAL">
        <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
        <class>model.Order</class>
        <class>model.OrderLine</class>
        <class>model.Customer</class>
        <mapping-file>META-INF/read-only-protected.xml</mapping-file>
        <properties>
            <!-- Change this to access your own database. -->
            <property name="javax.persistence.jdbc.driver" value="oracle.jdbc.OracleDriver" />
            <property name="javax.persistence.jdbc.url" value="jdbc:oracle:thin:@localhost:1521:orcl" />
            <property name="javax.persistence.jdbc.user" value="scott" />
            <property name="javax.persistence.jdbc.password" value="tiger" />
            <property name="eclipselink.ddl-generation" value="create-tables" />
            <property name="eclipselink.jdbc.cache-statements" value="true" />
            <property name="eclipselink.logging.level" value="off" />
            <property name="eclipselink.orm.validate.schema" value="true"/>
            <!--property name="eclipselink.logging.level" value="FINE" /-->
        </properties>
    </persistence-unit>
    <persistence-unit name="query-cache" transaction-type="RESOURCE_LOCAL">
        <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
        <class>model.Order</class>
        <class>model.OrderLine</class>
        <class>model.Customer</class>
        <mapping-file>META-INF/query-cache.xml</mapping-file>
        <properties>
            <!-- Change this to access your own database. -->
            <property name="javax.persistence.jdbc.driver" value="oracle.jdbc.OracleDriver" />
            <property name="javax.persistence.jdbc.url" value="jdbc:oracle:thin:@localhost:1521:orcl" />
            <property name="javax.persistence.jdbc.user" value="scott" />
            <property name="javax.persistence.jdbc.password" value="tiger" />
            <property name="eclipselink.ddl-generation" value="create-tables" />
            <property name="eclipselink.jdbc.cache-statements" value="true" />
            <property name="eclipselink.logging.level" value="off" />
            <property name="eclipselink.orm.validate.schema" value="true"/>
            <!--property name="eclipselink.logging.level" value="FINE" /-->
        </properties>
    </persistence-unit>
    <persistence-unit name="in-memory" transaction-type="RESOURCE_LOCAL">
        <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
        <class>model.Order</class>
        <class>model.OrderLine</class>
        <class>model.Customer</class>
        <mapping-file>META-INF/in-memory.xml</mapping-file>
        <properties>
            <!-- Change this to access your own database. -->
            <property name="javax.persistence.jdbc.driver" value="oracle.jdbc.OracleDriver" />
            <property name="javax.persistence.jdbc.url" value="jdbc:oracle:thin:@localhost:1521:orcl" />
            <property name="javax.persistence.jdbc.user" value="scott" />
            <property name="javax.persistence.jdbc.password" value="tiger" />
            <property name="eclipselink.ddl-generation" value="create-tables" />
            <property name="eclipselink.jdbc.cache-statements" value="true" />
            <property name="eclipselink.logging.level" value="off" />
            <property name="eclipselink.orm.validate.schema" value="true"/>
            <!--property name="eclipselink.logging.level" value="FINE" /-->
        </properties>
    </persistence-unit>
</persistence>

Back to the top