001/*
002 * Copyright (c) 2013 Oracle, Inc. All rights reserved.
003 *
004 * This program and the accompanying materials are made available under the
005 * terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0
006 * which accompanies this distribution.  The Eclipse Public License is available
007 * at http://www.eclipse.org/legal/epl-v10.html and the Eclipse Distribution License
008 * is available at http://www.eclipse.org/org/documents/edl-v10.php.
009 */
010package javax.persistence;
011
012/**
013 * Used to control the application of a constraint.
014 *
015 * @since JPA 2.1
016 */
017public enum ConstraintMode {
018  /**
019   * Apply the constraint.
020   */
021  CONSTRAINT,
022  /**
023   * Do not apply the constraint.
024   */
025  NO_CONSTRAINT,
026  /**
027   * Use the provider-defined default behavior.
028   */
029  PROVIDER_DEFAULT
030}