Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/persistence/GenericPersistence.java')
-rw-r--r--jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/persistence/GenericPersistence.java10
1 files changed, 1 insertions, 9 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/persistence/GenericPersistence.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/persistence/GenericPersistence.java
index 8f6a575a42..ba2ce52170 100644
--- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/persistence/GenericPersistence.java
+++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/persistence/GenericPersistence.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2007, 2013 Oracle. All rights reserved.
+ * Copyright (c) 2007, 2015 Oracle. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0, which accompanies this distribution
* and is available at http://www.eclipse.org/legal/epl-v10.html.
@@ -140,7 +140,6 @@ public class GenericPersistence
throw this.buildIOOBE(index);
}
PersistenceUnit old = this.persistenceUnit;
- this.persistenceUnit.dispose();
this.persistenceUnit = null;
this.xmlPersistence.getPersistenceUnits().remove(index);
this.fireItemRemoved(PERSISTENCE_UNITS_LIST, index, old);
@@ -187,7 +186,6 @@ public class GenericPersistence
protected void removePersistenceUnit_() {
PersistenceUnit old = this.persistenceUnit;
this.persistenceUnit = null;
- old.dispose();
this.fireItemRemoved(PERSISTENCE_UNITS_LIST, 0, old);
}
@@ -286,12 +284,6 @@ public class GenericPersistence
return this.structureChildren.size();
}
- public void dispose() {
- for (PersistenceUnit pu : this.getPersistenceUnits()) {
- pu.dispose();
- }
- }
-
// ********** validation **********

Back to the top