Package org.openwms.wms.inventory
Class UomRelation
java.lang.Object
org.ameba.integration.jpa.BaseEntity
org.ameba.integration.jpa.ApplicationEntity
org.openwms.wms.inventory.UomRelation
- All Implemented Interfaces:
Serializable,org.ameba.integration.TypedEntity<Long>
@Entity
public class UomRelation
extends org.ameba.integration.jpa.ApplicationEntity
implements Serializable
A UomRelation.
- Author:
- Heiko Scherrer
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringAn internal code of UomRelationprivate StringTextual descriptive text.Arbitrary detail information on this product unit, might be populated with ERP information.private DimensionThe defined dimension of theUomRelation.private @NotBlank StringAn identifying label of the UomRelation.private @NotNull ProductThe Product this relation belongs to.private @NotNull org.openwms.core.units.api.Measurable<?, ?, ?> The actual unit definition of this relation to the Product.Fields inherited from class org.ameba.integration.jpa.ApplicationEntity
C_ID -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDear JPA.UomRelation(String label, @NotNull org.openwms.core.units.api.Measurable unit) UomRelation(org.openwms.core.units.api.Measurable unit) -
Method Summary
Modifier and TypeMethodDescriptionAdd a new detail to theUomRelation.booleangetCode()getLabel()org.openwms.core.units.api.MeasurablegetUnit()inthashCode()voidvoidsetDescription(String description) voidsetDetails(Map<String, String> details) voidsetDimension(Dimension dimension) voidvoidsetProduct(Product product) voidsetUnit(org.openwms.core.units.api.Measurable unit) toString()Methods inherited from class org.ameba.integration.jpa.ApplicationEntity
getPersistentKey, hasPersistentKey, onEntityPersist, onPersist, setPersistentKeyMethods inherited from class org.ameba.integration.jpa.BaseEntity
getCreatedBy, getCreateDt, getLastModifiedBy, getLastModifiedDt, getOl, getPk, isNew, setCreatedBy, setCreateDt, setLastModifiedBy, setLastModifiedDt, setOl
-
Field Details
-
product
The Product this relation belongs to. -
label
An identifying label of the UomRelation. -
code
An internal code of UomRelation -
unit
@NotNull private @NotNull org.openwms.core.units.api.Measurable<?,?, unit?> The actual unit definition of this relation to the Product. -
description
Textual descriptive text. -
dimension
The defined dimension of theUomRelation. -
details
Arbitrary detail information on this product unit, might be populated with ERP information.
-
-
Constructor Details
-
UomRelation
protected UomRelation()Dear JPA. -
UomRelation
-
UomRelation
public UomRelation(org.openwms.core.units.api.Measurable unit)
-
-
Method Details
-
getProduct
-
setProduct
-
getLabel
-
setLabel
-
getCode
-
setCode
-
getUnit
public org.openwms.core.units.api.Measurable getUnit() -
setUnit
public void setUnit(org.openwms.core.units.api.Measurable unit) -
getDescription
-
setDescription
-
getDimension
-
setDimension
-
getDetails
-
setDetails
-
addDetail
Add a new detail to theUomRelation.- Parameters:
key- The unique key of the detailvalue- The value as String- Returns:
- This instance
-
toString
-
equals
- Overrides:
equalsin classorg.ameba.integration.jpa.ApplicationEntity
-
hashCode
public int hashCode()- Overrides:
hashCodein classorg.ameba.integration.jpa.ApplicationEntity
-