Class BioMaterialData

    • Constructor Detail

      • BioMaterialData

        public BioMaterialData()
    • Method Detail

      • equals

        public boolean equals​(Object other)
        It may happen that lazy-loaded proxies are put in the same collection as already loaded "real" objects in which case the BasicData.equals() method doesns't work. If both objects are BioMaterialData objects we can safely compare the id since they all share the same database table and id:s are always unique even for items of different types.
        Overrides:
        equals in class BasicData
        Since:
        3.3
      • getExternalId

        public String getExternalId()
        Get the external id for the biomaterial
        Hibernate: property
        column="`external_id`" type="string" length="255" not-null="false"
      • setExternalId

        public void setExternalId​(String externalId)
      • getChildren

        Set<MeasuredBioMaterialData> getChildren()
        This is the inverse end. NOTE! This collection will not contained pooled children or hybridizations.
        Since:
        2.9
        See Also:
        MeasuredBioMaterialData.getParent()
        Hibernate: set
        inverse="true" lazy="true"
        Hibernate: collection-key
        column="`parent_id`"
        Hibernate: collection-one-to-many
        class="net.sf.basedb.core.data.MeasuredBioMaterialData"