net.sf.basedb.core.data
Class AnnotationData
java.lang.Object
net.sf.basedb.core.data.BasicData
net.sf.basedb.core.data.AnnotationData
- All Implemented Interfaces:
- IdentifiableData
public class AnnotationData
- extends BasicData
This class holds information about an annotation
- Version:
- 2.0
- Author:
- Nicklas
- See Also:
Annotation
,
Annotations overview- Hibernate: class
- table="`Annotations`" lazy="false"
annotationSet
private AnnotationSetData annotationSet
annotationType
private AnnotationTypeData annotationType
values
private ParameterValueData<?> values
inheritingSets
private Set<AnnotationSetData> inheritingSets
AnnotationData
public AnnotationData()
getAnnotationSet
public AnnotationSetData getAnnotationSet()
- Get the annotation set this annotation primarily belongs to.
- Hibernate: column
- name="`annotationset_id`" not-null="true" unique-key="uniquetype"
- Hibernate: many-to-one
- outer-join="false" update="false"
setAnnotationSet
public void setAnnotationSet(AnnotationSetData annotationSet)
getAnnotationType
public AnnotationTypeData getAnnotationType()
- Get the type of this annotation.
- Hibernate: column
- name="`annotationtype_id`" not-null="true" unique-key="uniquetype"
- Hibernate: many-to-one
- outer-join="false" update="false"
setAnnotationType
public void setAnnotationType(AnnotationTypeData annotationType)
getValues
public ParameterValueData<?> getValues()
- The values of this annotation.
- Hibernate: many-to-one
- column="`value_id`" not-null="true" update="false" cascade="all" unique="true"
setValues
public void setValues(ParameterValueData<?> values)
getInheritingSets
Set<AnnotationSetData> getInheritingSets()
- The annotation sets which inherit this annotation. This is the inverse end.
- See Also:
AnnotationSetData.getInherited()
- Hibernate: set
- table="`InheritedAnnotations`" lazy="true"
- Hibernate: collection-key
- column="`annotation_id`"
- Hibernate: collection-many-to-many
- column="`annotationset_id`" class="net.sf.basedb.core.data.AnnotationSetData"
setInheritingSets
void setInheritingSets(Set<AnnotationSetData> inheritingSets)