- Fix API. Submitted by Bill Burke.
authorremm <remm@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 18 Jun 2007 15:54:54 +0000 (15:54 +0000)
committerremm <remm@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 18 Jun 2007 15:54:54 +0000 (15:54 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@548385 13f79535-47bb-0310-9956-ffa450edef68

java/javax/persistence/PersistenceContext.java
java/javax/persistence/PersistenceContextType.java [new file with mode: 0644]

index aaa697b..20b58d8 100644 (file)
@@ -27,10 +27,6 @@ import java.lang.annotation.Target;
 @Retention(RetentionPolicy.RUNTIME)
 
 public @interface PersistenceContext {
-    public enum PersistenceContextType {
-        TRANSACTION,
-        EXTENDED
-    }
    String name() default "";
    String unitName() default "";
    PersistenceContextType type() default PersistenceContextType.TRANSACTION;
diff --git a/java/javax/persistence/PersistenceContextType.java b/java/javax/persistence/PersistenceContextType.java
new file mode 100644 (file)
index 0000000..500c692
--- /dev/null
@@ -0,0 +1,24 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+package javax.persistence;
+
+public enum PersistenceContextType {
+    TRANSACTION,
+    EXTENDED
+}
\ No newline at end of file