Package net.sf.basedb.core.data
Interface SubtypableData
- All Known Implementing Classes:
BioMaterialData
,BioSourceData
,DerivedBioAssayData
,ExtractData
,FileData
,HardwareData
,JobData
,KitData
,MeasuredBioMaterialData
,PhysicalBioAssayData
,ProtocolData
,SampleData
,SoftwareData
,TagData
public interface SubtypableData
A subtypable item is an item that can have a subtype. Subtypes are defined
by objects of the
ItemSubtypeData
class.
This interface defines Hibernate database mapping for the
itemSubtype
association to a column with
the name subtype_id
. If a subclass wants
to map the association to another column, it should override
the getItemSubtype()
method and add a Hibernate tag
in the comment.
Reference implementation
private ItemSubtypeData subtype; public ItemSubtypeData getItemSubtype() { return subtype; } public void setItemSubtype(ItemSubtypeData subtype) { this.subtype = subtype; }
- Since:
- 3.0
- Author:
- Nicklas
- See Also:
- Last modified
- $Date: 2011-10-21 13:15:41 +0200 (fr, 21 okt 2011) $
-
Method Summary
Modifier and TypeMethodDescriptionGet the subtype of the item.void
setItemSubtype
(ItemSubtypeData subtype) Set the subtype of the item.
-
Method Details
-
getItemSubtype
ItemSubtypeData getItemSubtype()Get the subtype of the item.- Hibernate: many-to-one
- column="`subtype_id`" not-null="false" outer-join="false"
-
setItemSubtype
Set the subtype of the item.
-