1 /*
2 * Copyright (c) 2008, 2019 Oracle and/or its affiliates. All rights reserved.
3 *
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v. 2.0 which is available at
6 * http://www.eclipse.org/legal/epl-2.0,
7 * or the Eclipse Distribution License v. 1.0 which is available at
8 * http://www.eclipse.org/org/documents/edl-v10.php.
9 *
10 * SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
11 */
12
13 // Contributors:
14 // Linda DeMichiel - 2.1
15 // Linda DeMichiel - 2.0
16
17 package javax.persistence.spi;
18
19 /**
20 * Specifies whether entity managers created by the {@link
21 * javax.persistence.EntityManagerFactory} will be JTA or
22 * resource-local entity managers.
23 *
24 * @since 1.0
25 */
26 public enum PersistenceUnitTransactionType {
27
28 /** JTA entity managers will be created. */
29 JTA,
30
31 /** Resource-local entity managers will be created. */
32 RESOURCE_LOCAL
33 }
34