diff options
author | bvosburgh | 2009-04-08 21:36:33 +0000 |
---|---|---|
committer | bvosburgh | 2009-04-08 21:36:33 +0000 |
commit | d79667e0baedf62fa012cebd9192f174207abb71 (patch) | |
tree | 4b94c20091d6eccb7dde88f1b27b8867d1ec1659 /jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/resource/java/EntityAnnotation.java | |
parent | 42930aa8f26f77f3ab22ef27fbc4c425045dfec6 (diff) | |
download | webtools.dali-d79667e0baedf62fa012cebd9192f174207abb71.tar.gz webtools.dali-d79667e0baedf62fa012cebd9192f174207abb71.tar.xz webtools.dali-d79667e0baedf62fa012cebd9192f174207abb71.zip |
[197069] support for entities in jars - resource model
Diffstat (limited to 'jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/resource/java/EntityAnnotation.java')
-rw-r--r-- | jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/resource/java/EntityAnnotation.java | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/resource/java/EntityAnnotation.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/resource/java/EntityAnnotation.java index 28297533d2..60754bd08b 100644 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/resource/java/EntityAnnotation.java +++ b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/resource/java/EntityAnnotation.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007, 2008 Oracle. All rights reserved. + * Copyright (c) 2007, 2009 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. @@ -13,7 +13,8 @@ import org.eclipse.jdt.core.dom.CompilationUnit; import org.eclipse.jpt.core.utility.TextRange; /** - * Corresponds to the javax.persistence.Entity annotation + * Corresponds to the JPA annotation + * javax.persistence.Entity * * Provisional API: This interface is part of an interim API that is still * under development and expected to change significantly before reaching @@ -21,26 +22,26 @@ import org.eclipse.jpt.core.utility.TextRange; * pioneering adopters on the understanding that any code that uses this API * will almost certainly be broken (repeatedly) as the API evolves. */ -public interface EntityAnnotation extends JavaResourceNode +public interface EntityAnnotation + extends Annotation { String ANNOTATION_NAME = JPA.ENTITY; /** - * Corresponds to the name element of the Entity annotation. - * Returns null if the name element does not exist in java. + * Corresponds to the 'name' element of the Entity annotation. + * Return null if the element does not exist in Java. */ String getName(); - + String NAME_PROPERTY = "name"; //$NON-NLS-1$ + /** - * Corresponds to the name element of the Entity annotation. - * Set to null to remove the name element. + * Corresponds to the 'name' element of the Entity annotation. + * Set to null to remove the element. */ void setName(String name); - - String NAME_PROPERTY = "name"; //$NON-NLS-1$ - + /** - * Return the {@link TextRange} for the name element. If the name element + * Return the {@link TextRange} for the 'name' element. If the element * does not exist return the {@link TextRange} for the Entity annotation. */ TextRange getNameTextRange(CompilationUnit astRoot); |