PageRenderTime 23ms CodeModel.GetById 14ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 1ms

/tests/META-INF/persistence.xml

http://datanucleus-appengine.googlecode.com/
XML | 134 lines | 110 code | 10 blank | 14 comment | 0 complexity | 8795f0508e62a8c04a77962c4bebd886 MD5 | raw file
  1<?xml version="1.0" encoding="UTF-8"?>
  2<!--**********************************************************************
  3Copyright (c) 2009 Google Inc.
  4Licensed under the Apache License, Version 2.0 (the "License");
  5you may not use this file except in compliance with the License.
  6You may obtain a copy of the License at
  7
  8    http://www.apache.org/licenses/LICENSE-2.0
  9
 10Unless required by applicable law or agreed to in writing, software
 11distributed under the License is distributed on an "AS IS" BASIS,
 12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 13See the License for the specific language governing permissions and
 14limitations under the License.
 15**********************************************************************-->
 16<persistence xmlns="http://java.sun.com/xml/ns/persistence"
 17    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 18    xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
 19        http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd" version="1.0">
 20
 21    <persistence-unit name="originalStorageVersion">
 22        <provider>org.datanucleus.api.jpa.PersistenceProviderImpl</provider>
 23        <properties>
 24            <property name="datanucleus.ConnectionURL" value="appengine"/>
 25            <property name="datanucleus.metadata.allowLoadAtRuntime" value="true"/>
 26            <property name="datanucleus.appengine.ignorableMetaDataBehavior" value="ERROR"/>
 27		    <property name="datanucleus.cache.level2.type" value="None"/>
 28            <property name="datanucleus.nontx.atomic" value="true"/>
 29            <property name="datanucleus.appengine.storageVersion" value="PARENTS_DO_NOT_REFER_TO_CHILDREN"/>
 30        </properties>
 31    </persistence-unit>
 32
 33    <persistence-unit name="transactional_ds_non_transactional_ops_not_allowed">
 34        <provider>org.datanucleus.api.jpa.PersistenceProviderImpl</provider>
 35        <properties>
 36            <property name="datanucleus.ConnectionURL" value="appengine"/>
 37            <property name="datanucleus.metadata.allowLoadAtRuntime" value="true"/>
 38            <property name="datanucleus.appengine.ignorableMetaDataBehavior" value="ERROR"/>
 39		    <property name="datanucleus.cache.level2.type" value="None"/>
 40            <property name="datanucleus.nontx.atomic" value="true"/>
 41        </properties>
 42    </persistence-unit>
 43
 44    <persistence-unit name="transactional_ds_non_transactional_ops_allowed">
 45        <provider>org.datanucleus.api.jpa.PersistenceProviderImpl</provider>
 46        <properties>
 47            <property name="datanucleus.ConnectionURL" value="appengine"/>
 48            <property name="datanucleus.NontransactionalRead" value="true"/>
 49            <property name="datanucleus.NontransactionalWrite" value="true"/>
 50            <property name="datanucleus.metadata.allowLoadAtRuntime" value="true"/>
 51            <property name="datanucleus.appengine.ignorableMetaDataBehavior" value="ERROR"/>
 52		    <property name="datanucleus.cache.level2.type" value="None"/>
 53            <property name="datanucleus.nontx.atomic" value="true"/>
 54        </properties>
 55    </persistence-unit>
 56
 57    <persistence-unit name="nontransactional_ds_non_transactional_ops_not_allowed">
 58        <provider>org.datanucleus.api.jpa.PersistenceProviderImpl</provider>
 59        <properties>
 60            <property name="datanucleus.ConnectionURL" value="appengine"/>
 61            <property name="datanucleus.appengine.autoCreateDatastoreTxns" value="false"/>
 62            <property name="datanucleus.metadata.allowLoadAtRuntime" value="true"/>
 63            <property name="datanucleus.appengine.ignorableMetaDataBehavior" value="ERROR"/>
 64		    <property name="datanucleus.cache.level2.type" value="None"/>
 65            <property name="datanucleus.nontx.atomic" value="true"/>
 66        </properties>
 67    </persistence-unit>
 68
 69    <persistence-unit name="nontransactional_ds_non_transactional_ops_allowed">
 70        <provider>org.datanucleus.api.jpa.PersistenceProviderImpl</provider>
 71        <properties>
 72            <property name="datanucleus.ConnectionURL" value="appengine"/>
 73            <property name="datanucleus.NontransactionalRead" value="true"/>
 74            <property name="datanucleus.NontransactionalWrite" value="true"/>
 75            <property name="datanucleus.appengine.autoCreateDatastoreTxns" value="false"/>
 76            <property name="datanucleus.metadata.allowLoadAtRuntime" value="true"/>
 77            <property name="datanucleus.appengine.ignorableMetaDataBehavior" value="ERROR"/>
 78		    <property name="datanucleus.cache.level2.type" value="None"/>
 79            <property name="datanucleus.nontx.atomic" value="true"/>
 80        </properties>
 81    </persistence-unit>
 82
 83    <persistence-unit name="nontransactional_ds_non_transactional_ops_allowed_singleton">
 84        <provider>org.datanucleus.api.jpa.PersistenceProviderImpl</provider>
 85        <properties>
 86            <property name="datanucleus.ConnectionURL" value="appengine"/>
 87            <property name="datanucleus.NontransactionalRead" value="true"/>
 88            <property name="datanucleus.NontransactionalWrite" value="true"/>
 89            <property name="datanucleus.singletonEMFForName" value="true"/>
 90            <property name="datanucleus.appengine.autoCreateDatastoreTxns" value="false"/>
 91            <property name="datanucleus.metadata.allowLoadAtRuntime" value="true"/>
 92            <property name="datanucleus.appengine.ignorableMetaDataBehavior" value="ERROR"/>
 93		    <property name="datanucleus.cache.level2.type" value="None"/>
 94            <property name="datanucleus.nontx.atomic" value="true"/>
 95        </properties>
 96    </persistence-unit>
 97
 98    <persistence-unit name="datastoreserviceconfigprops">
 99        <provider>org.datanucleus.api.jpa.PersistenceProviderImpl</provider>
100        <properties>
101            <property name="datanucleus.ConnectionURL" value="appengine"/>
102            <property name="datanucleus.NontransactionalRead" value="true"/>
103            <property name="datanucleus.NontransactionalWrite" value="true"/>
104            <property name="datanucleus.datastoreReadTimeout" value="5000"/>
105            <property name="datanucleus.datastoreWriteTimeout" value="10000"/>
106            <property name="datanucleus.appengine.datastoreReadConsistency" value="EVENTUAL"/>
107		    <property name="datanucleus.cache.level2.type" value="None"/>
108            <property name="datanucleus.nontx.atomic" value="true"/>
109        </properties>
110    </persistence-unit>
111
112    <persistence-unit name="allowXGTxns">
113        <provider>org.datanucleus.api.jpa.PersistenceProviderImpl</provider>
114        <properties>
115            <property name="datanucleus.NontransactionalRead" value="true"/>
116            <property name="datanucleus.NontransactionalWrite" value="true"/>
117            <property name="datanucleus.ConnectionURL" value="appengine"/>
118            <property name="datanucleus.nontx.atomic" value="true"/>
119            <property name="datanucleus.appengine.datastoreEnableXGTransactions" value="true"/>
120        </properties>
121    </persistence-unit>
122
123    <persistence-unit name="disallowXGTxns">
124        <provider>org.datanucleus.api.jpa.PersistenceProviderImpl</provider>
125        <properties>
126            <property name="datanucleus.NontransactionalRead" value="true"/>
127            <property name="datanucleus.NontransactionalWrite" value="true"/>
128            <property name="datanucleus.ConnectionURL" value="appengine"/>
129            <property name="datanucleus.nontx.atomic" value="true"/>
130            <property name="datanucleus.appengine.datastoreEnableXGTransactions" value="false"/>
131        </properties>
132    </persistence-unit>
133
134</persistence>