org.proteios.core.data
Class UsedQuantity
java.lang.Object
org.proteios.core.data.UsedQuantity
- All Implemented Interfaces:
- Serializable
public class UsedQuantity
- extends Object
- implements Serializable
Hibernate will not save entries in the sources map BioMaterialEventData.getSources()
where the element is null, so we have to use a composite element instead. This class
maps the used_quantity column in the BioMaterialEventSources table.
- Version:
- 2.0
- Author:
- Nicklas
- See Also:
- Biomaterials overview,
Serialized Form
- Last modified
- $Date: 2009-04-09 08:48:11 +0200 (Thu, 09 Apr 2009) $
UsedQuantity
public UsedQuantity(Float usedQuantity)
- Create a new instance.
- Parameters:
usedQuantity - The used quantity
getUsedQuantityInMicroLiters
public Float getUsedQuantityInMicroLiters()
- Get the used quantity.
- Hibernate: property
- column="`used_quantity`" not-null="false" type="float"
equals
public boolean equals(Object o)
- Check if this object is equal to another
UsedQuantity
object. They are considered to be the same if the contains the same
non-null value.
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Calculate the hash code for the object.
- Overrides:
hashCode in class Object
toString
public String toString()
- Convert the value to a string.
- Overrides:
toString in class Object