diff options
author | kmoore | 2009-03-10 21:51:23 +0000 |
---|---|---|
committer | kmoore | 2009-03-10 21:51:23 +0000 |
commit | a0a0fb884085c95b214697d611a5c0d34c45d772 (patch) | |
tree | e7f0fb049a86045cb7f1045b01a89610573b3597 /jpa/plugins/org.eclipse.jpt.eclipselink.core/src | |
parent | 71e09e96bdd5074c1151473294c6ca0b1a0589a2 (diff) | |
download | webtools.dali-a0a0fb884085c95b214697d611a5c0d34c45d772.tar.gz webtools.dali-a0a0fb884085c95b214697d611a5c0d34c45d772.tar.xz webtools.dali-a0a0fb884085c95b214697d611a5c0d34c45d772.zip |
removing @Access support from EclipseLink1.1 platform
Diffstat (limited to 'jpa/plugins/org.eclipse.jpt.eclipselink.core/src')
2 files changed, 18 insertions, 20 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/internal/EclipseLink1_1JpaAnnotationDefinitionProvider.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/internal/EclipseLink1_1JpaAnnotationDefinitionProvider.java index 1ac1e768f3..5c75079c06 100644 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/internal/EclipseLink1_1JpaAnnotationDefinitionProvider.java +++ b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/internal/EclipseLink1_1JpaAnnotationDefinitionProvider.java @@ -12,7 +12,6 @@ package org.eclipse.jpt.eclipselink.core.internal; import java.util.List; import org.eclipse.jpt.core.JpaAnnotationDefinitionProvider; import org.eclipse.jpt.core.internal.platform.AbstractJpaAnnotationDefintionProvider; -import org.eclipse.jpt.core.internal.resource.java.AccessImpl.AccessAnnotationDefinition; import org.eclipse.jpt.core.resource.java.AnnotationDefinition; /** @@ -46,7 +45,9 @@ public class EclipseLink1_1JpaAnnotationDefinitionProvider @Override protected void addTypeSupportingAnnotationDefinitionsTo(List<AnnotationDefinition> definitions) { - definitions.add(AccessAnnotationDefinition.instance()); + //TODO commented out this code for now, we don't want the java Access annotation work to be exposed yet. + //EclipseLink has backed out its JPA 2.0 annotation support until it is released or licensing issues are cleared up. +// definitions.add(AccessAnnotationDefinition.instance()); } @Override @@ -56,6 +57,8 @@ public class EclipseLink1_1JpaAnnotationDefinitionProvider @Override protected void addAttributeSupportingAnnotationDefinitionsTo(List<AnnotationDefinition> definitions) { - definitions.add(AccessAnnotationDefinition.instance()); + //TODO commented out this code for now, we don't want the java Access annotation work to be exposed yet. + //EclipseLink has backed out its JPA 2.0 annotation support until it is released or licensing issues are cleared up. +// definitions.add(AccessAnnotationDefinition.instance()); } } diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/internal/EclipseLink1_1JpaFactory.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/internal/EclipseLink1_1JpaFactory.java index db5b89b56b..7a756fa8ec 100644 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/internal/EclipseLink1_1JpaFactory.java +++ b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/internal/EclipseLink1_1JpaFactory.java @@ -10,8 +10,6 @@ package org.eclipse.jpt.eclipselink.core.internal; import org.eclipse.jpt.core.context.MappingFile; -import org.eclipse.jpt.core.context.PersistentType; -import org.eclipse.jpt.core.context.PersistentType.Owner; import org.eclipse.jpt.core.context.java.JavaAttributeMapping; import org.eclipse.jpt.core.context.java.JavaBasicMapping; import org.eclipse.jpt.core.context.java.JavaEmbeddedIdMapping; @@ -21,8 +19,6 @@ import org.eclipse.jpt.core.context.java.JavaManyToManyMapping; import org.eclipse.jpt.core.context.java.JavaManyToOneMapping; import org.eclipse.jpt.core.context.java.JavaOneToManyMapping; import org.eclipse.jpt.core.context.java.JavaOneToOneMapping; -import org.eclipse.jpt.core.context.java.JavaPersistentAttribute; -import org.eclipse.jpt.core.context.java.JavaPersistentType; import org.eclipse.jpt.core.context.java.JavaTransientMapping; import org.eclipse.jpt.core.context.java.JavaVersionMapping; import org.eclipse.jpt.core.context.orm.EntityMappings; @@ -40,13 +36,9 @@ import org.eclipse.jpt.core.context.orm.OrmPersistentType; import org.eclipse.jpt.core.context.orm.OrmTypeMapping; import org.eclipse.jpt.core.context.orm.OrmVersionMapping; import org.eclipse.jpt.core.context.persistence.MappingFileRef; -import org.eclipse.jpt.core.resource.java.JavaResourcePersistentAttribute; -import org.eclipse.jpt.core.resource.java.JavaResourcePersistentType; import org.eclipse.jpt.core.resource.orm.XmlNullAttributeMapping; import org.eclipse.jpt.core.resource.orm.XmlTypeMapping; import org.eclipse.jpt.core.resource.xml.JpaXmlResource; -import org.eclipse.jpt.eclipselink.core.internal.context.java.EclipseLink1_1JavaPersistentAttribute; -import org.eclipse.jpt.eclipselink.core.internal.context.java.EclipseLink1_1JavaPersistentType; import org.eclipse.jpt.eclipselink.core.internal.context.java.JavaBasicCollectionMapping; import org.eclipse.jpt.eclipselink.core.internal.context.java.JavaBasicMapMapping; import org.eclipse.jpt.eclipselink.core.internal.context.java.JavaTransformationMapping; @@ -116,16 +108,19 @@ public class EclipseLink1_1JpaFactory // **************** Java Context Model ************************************* - - @Override - public JavaPersistentType buildJavaPersistentType(Owner owner, JavaResourcePersistentType jrpt) { - return new EclipseLink1_1JavaPersistentType(owner, jrpt); - } - @Override - public JavaPersistentAttribute buildJavaPersistentAttribute(PersistentType parent, JavaResourcePersistentAttribute jrpa) { - return new EclipseLink1_1JavaPersistentAttribute(parent, jrpa); - } + //TODO commented out this code for now, we don't want the java Access annotation work to be exposed yet. + //EclipseLink has backed out its JPA 2.0 annotation support until it is released or licensing issues are cleared up. +// +// @Override +// public JavaPersistentType buildJavaPersistentType(Owner owner, JavaResourcePersistentType jrpt) { +// return new EclipseLink1_1JavaPersistentType(owner, jrpt); +// } +// +// @Override +// public JavaPersistentAttribute buildJavaPersistentAttribute(PersistentType parent, JavaResourcePersistentAttribute jrpa) { +// return new EclipseLink1_1JavaPersistentAttribute(parent, jrpa); +// } // ********** EclipseLink-specific ORM Virtual Resource Model ********** |