1 /*
2 * Copyright (c) 2013, 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
16 package javax.persistence;
17
18 /**
19 * Used to control the application of a constraint.
20 *
21 * @since 2.1
22 */
23 public enum ConstraintMode {
24
25 /** Apply the constraint. */
26 CONSTRAINT,
27
28 /** Do not apply the constraint. */
29 NO_CONSTRAINT,
30
31 /** Use the provider-defined default behavior. */
32 PROVIDER_DEFAULT
33 }
34