public interface IMapping extends Comparable<IMapping>
IManagedType
Modifier and Type | Method and Description |
---|---|
IMappingType |
getMappingType()
Returns the type of this mapping.
|
String |
getName()
Returns the name of the persistence property represented by this mapping.
|
IManagedType |
getParent()
Returns the parent managed type owning this mapping.
|
IType |
getType()
Returns the type of this mapping.
|
ITypeDeclaration |
getTypeDeclaration()
Returns the declaration of the Java class, which gives the information about type parameters,
dimensionality, etc.
|
boolean |
hasAnnotation(Class<? extends Annotation> annotationType)
Determines whether the given annotation is present on this type.
|
compareTo
IMappingType getMappingType()
String getName()
IManagedType getParent()
IType getType()
@OneToMany
private Collection<Employee> employees;
"Employee" is the type. To retrieve Collection
, getTypeDeclaration()
needs to be used, its type will be Collection
and it's generic type will be
Employee
.
ITypeDeclaration getTypeDeclaration()
@OneToMany
private Collection<Employee> employees;
"Collection<Employee>" is the type declaration.
boolean hasAnnotation(Class<? extends Annotation> annotationType)
annotationType
- The class of the annotationtrue
if the annotation is defined on this type; false
otherwiseEclipseLink 2.3.2, "build v20111125-r10461" API Reference