001/*
002 * Copyright (c) 2008, 2009, 2011 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
012import java.lang.annotation.Retention;
013import java.lang.annotation.Target;
014
015import static java.lang.annotation.RetentionPolicy.RUNTIME;
016
017/**
018 * Describes a single container or persistence provider property. Used in {@link PersistenceContext}.
019 * <p>
020 * Vendor specific properties may be included in the set of properties, and are passed to the persistence
021 * provider by the container when the entity manager is created. Properties that are not recognized by a
022 * vendor will be ignored.
023 *
024 * @since Java Persistence 1.0
025 */
026@Target({})
027@Retention(RUNTIME)
028public @interface PersistenceProperty {
029  /**
030   * The name of the property
031   *
032   * @return Name
033   */
034  String name();
035
036  /**
037   * The value of the property
038   *
039   * @return value
040   */
041  String value();
042}