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;
18
19 import java.lang.annotation.Target;
20 import java.lang.annotation.Retention;
21 import static java.lang.annotation.RetentionPolicy.*;
22
23 /**
24 * Describes a single container or persistence provider property. Used in {@link
25 * PersistenceContext}.
26 *
27 * <p> Vendor specific properties may be included in the set of
28 * properties, and are passed to the persistence provider by the
29 * container when the entity manager is created. Properties that
30 * are not recognized by a vendor will be ignored.
31 *
32 * @since 1.0
33 */
34 @Target({})
35 @Retention(RUNTIME)
36 public @interface PersistenceProperty {
37
38 /** The name of the property */
39 String name();
40
41 /** The value of the property */
42 String value();
43
44 }
45