summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaren Butzke2013-02-26 12:42:26 (EST)
committerKaren Butzke2013-02-26 12:42:26 (EST)
commitdbc9c863534206a1e2b56a83576c37b5b507e187 (patch)
tree9d482e43f38dbf53bac72b78b5e0eeca9100227e
parent40df250b20bbd1e8d576a3e32d6243b8375aa125 (diff)
downloadwebtools.dali-dbc9c863534206a1e2b56a83576c37b5b507e187.zip
webtools.dali-dbc9c863534206a1e2b56a83576c37b5b507e187.tar.gz
webtools.dali-dbc9c863534206a1e2b56a83576c37b5b507e187.tar.bz2
Fixed CCE with building a java persistent type from a jar-file ref
-rw-r--r--jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/JavaPersistentTypeDefinition.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/JavaPersistentTypeDefinition.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/JavaPersistentTypeDefinition.java
index c61c868..600d438 100644
--- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/JavaPersistentTypeDefinition.java
+++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/JavaPersistentTypeDefinition.java
@@ -13,9 +13,9 @@ import org.eclipse.jpt.common.core.resource.java.JavaResourceType;
import org.eclipse.jpt.jpa.core.JpaFactory;
import org.eclipse.jpt.jpa.core.JpaProject;
import org.eclipse.jpt.jpa.core.context.JpaContextNode;
+import org.eclipse.jpt.jpa.core.context.PersistentType;
import org.eclipse.jpt.jpa.core.context.java.JavaManagedTypeDefinition;
import org.eclipse.jpt.jpa.core.context.java.JavaPersistentType;
-import org.eclipse.jpt.jpa.core.context.persistence.ClassRef;
public class JavaPersistentTypeDefinition implements JavaManagedTypeDefinition
{
@@ -45,6 +45,6 @@ public class JavaPersistentTypeDefinition implements JavaManagedTypeDefinition
}
public JavaPersistentType buildContextManagedType(JpaContextNode parent, JavaResourceType jrt, JpaFactory factory) {
- return factory.buildJavaPersistentType((ClassRef) parent, jrt);
+ return factory.buildJavaPersistentType((PersistentType.Owner) parent, jrt);
}
}