Class AnnotationSetData

    • Field Detail

      • itemType

        private transient int itemType
      • itemId

        private transient Integer itemId
    • Constructor Detail

      • AnnotationSetData

        public AnnotationSetData()
    • Method Detail

      • 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"