From 6f441389ad1da95abd6820eb1a6d9173e205e2e2 Mon Sep 17 00:00:00 2001 From: remm Date: Mon, 18 Jun 2007 15:54:54 +0000 Subject: [PATCH] - Fix API. Submitted by Bill Burke. 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 | 4 ---- java/javax/persistence/PersistenceContextType.java | 24 ++++++++++++++++++++++ 2 files changed, 24 insertions(+), 4 deletions(-) create mode 100644 java/javax/persistence/PersistenceContextType.java diff --git a/java/javax/persistence/PersistenceContext.java b/java/javax/persistence/PersistenceContext.java index aaa697bc1..20b58d876 100644 --- a/java/javax/persistence/PersistenceContext.java +++ b/java/javax/persistence/PersistenceContext.java @@ -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 index 000000000..500c692ba --- /dev/null +++ b/java/javax/persistence/PersistenceContextType.java @@ -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 -- 2.11.0