Package net.sf.basedb.core.data
Class UnitSymbolData
java.lang.Object
net.sf.basedb.core.data.BasicData
net.sf.basedb.core.data.UnitSymbolData
- All Implemented Interfaces:
IdentifiableData
This class holds information the symbol that are used with units.
A symbol must be unique within a given
QuantityData
. To make
it easier for user to input we will also register alternative symbols
for units. For example:
Temperature: °C -- C Surface area: m² -- m2
- Version:
- 2.9
- Author:
- Nicklas
- See Also:
- Last modified
- $Date $
- Hibernate: class
- table="`UnitSymbols`" lazy="false"
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the quantity this symbol belongs to.The symbol, which must be unique for a given quantity.getUnit()
Get the unit this symbol belongs to.void
setQuantity
(QuantityData quantity) void
void
Methods inherited from class net.sf.basedb.core.data.BasicData
equals, getId, getVersion, hashCode, setId, setVersion, toString
-
Field Details
-
quantity
-
symbol
-
unit
-
-
Constructor Details
-
UnitSymbolData
public UnitSymbolData()
-
-
Method Details
-
getQuantity
Get the quantity this symbol belongs to.- Hibernate: column
- name="`quantity_id`" not-null="true" unique-key="UnitSymbol_uniquesymbol"
- Hibernate: many-to-one
- outer-join="false" update="false"
-
setQuantity
-
getSymbol
The symbol, which must be unique for a given quantity.- Hibernate: property
- type="string"
- Hibernate: column
- name="`symbol`" length="255" not-null="true" unique-key="UnitSymbol_uniquesymbol"
-
setSymbol
-
getUnit
Get the unit this symbol belongs to.- Hibernate: many-to-one
- column="`unit_id`" update="false" not-null="true" outer-join="false"
-
setUnit
-