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:
AnnotationSet, Developer documentation: Annotations, Serialized Form
Hibernate: class
table="`AnnotationSets`" lazy="true" batch-size="10"
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
      Constant Field Values
    • itemType

      private transient int itemType
    • itemId

      private transient Integer itemId
    • annotations

      private transient Set<AnnotationData> 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

      @NotLoggable public Integer 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

      public void setItemId​(Integer itemId)
    • getAnnotations

      @NotLoggable public Set<AnnotationData> getAnnotations()
      The annotations in this annotation set. This is the inverse end.
      See Also:
      AnnotationData.getAnnotationSet()
      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

      void setAnnotations​(Set<AnnotationData> annotations)