Annotation Type JpaUnit
-
@Target({METHOD,FIELD}) @Retention(RUNTIME) public @interface JpaUnit
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.Class<? extends javax.measure.Quantity<?>>
quantityType
Specifies the quantityType which can be used to determine the system default unitcom.raynigon.unit_api.core.annotation.QuantityShape
shape
Serialize the Quantity as Stringjava.lang.Class<? extends com.raynigon.unit_api.core.units.general.IUnit<?>>
unit
Specifies the unit in which the Quantity is serialized/deserializedjava.lang.Class<? extends com.raynigon.unit_api.core.units.general.IUnit<?>>
value
AliasFor(value="unit") Specifies the unit in which the Quantity is serialized/deserialized
-
-
-
Element Detail
-
value
java.lang.Class<? extends com.raynigon.unit_api.core.units.general.IUnit<?>> value
AliasFor(value="unit") Specifies the unit in which the Quantity is serialized/deserialized- Returns:
- the unit which should be used for serialization/deserialization
- Default:
- com.raynigon.unit_api.jpa.annotation.JpaUnit.NoneUnit.class
-
-
-
quantityType
java.lang.Class<? extends javax.measure.Quantity<?>> quantityType
Specifies the quantityType which can be used to determine the system default unit- Returns:
- the quantityType which should be used to determine the system unit for serialization/deserialization
- Default:
- com.raynigon.unit_api.jpa.annotation.NoneQuantity.class
-
-