Package net.sf.basedb.core.data
Class AnnotationSetData
java.lang.Object
net.sf.basedb.core.data.BasicData
net.sf.basedb.core.data.AnnotationSetData
- All Implemented Interfaces:
Serializable
,IdentifiableData
,LoggableData
,NoAutoUnlinkAnyToAny
public class AnnotationSetData
extends BasicData
implements LoggableData, Serializable, NoAutoUnlinkAnyToAny
This class holds information about a set of annotations.
- Version:
- 2.0
- Author:
- Nicklas
- See Also:
- Hibernate: class
- table="`AnnotationSets`" lazy="true" batch-size="10"
-
Field Summary
Modifier and TypeFieldDescriptionprivate Set<AnnotationData>
private Integer
private int
private static final long
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe annotations in this annotation set.The ID if the item this annotation set is associated with.int
Get the item type this annotation set is associated with.(package private) void
setAnnotations
(Set<AnnotationData> annotations) void
void
setItemType
(int itemType) Methods inherited from class net.sf.basedb.core.data.BasicData
equals, getId, getVersion, hashCode, setId, setVersion, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
itemType
private transient int itemType -
itemId
-
annotations
-
-
Constructor Details
-
AnnotationSetData
public AnnotationSetData()
-
-
Method Details
-
getItemType
public int getItemType()Get the item type this annotation set is associated with.- Hibernate: property
- column="`item_type`" type="int" not-null="true" update="false"
-
setItemType
public void setItemType(int itemType) -
getItemId
The ID if the item this annotation set is associated with. Can be null if this is not know. Use a query based on the itemType and annotation set ID to find the item in this case.- Since:
- 2.14
- Hibernate: property
- column="`item_id`" type="int" not-null="false"
-
setItemId
-
getAnnotations
The annotations in this annotation set. This is the inverse end.- See Also:
- Hibernate: set
- lazy="true" cascade="delete" inverse="true"
- Hibernate: collection-key
- column="`annotationset_id`"
- Hibernate: collection-one-to-many
- class="net.sf.basedb.core.data.AnnotationData"
-
setAnnotations
-