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 String
An internal identifying code of UomRelationprivate String
Textual descriptive text.Arbitrary detail information on this product unit, might be populated with ERP information.private Dimension
The defined dimension of theUomRelation
.private String
An identifying label of the UomRelation.private @NotNull Product
The 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
ConstructorsModifierConstructorDescriptionprotected
Dear 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
.boolean
getCode()
getLabel()
org.openwms.core.units.api.Measurable
getUnit()
int
hashCode()
void
void
setDescription
(String description) void
setDetails
(Map<String, String> details) void
setDimension
(Dimension dimension) void
void
setProduct
(Product product) void
setUnit
(org.openwms.core.units.api.Measurable unit) toString()
Methods inherited from class org.ameba.integration.jpa.ApplicationEntity
getPersistentKey, hasPersistentKey, onEntityPersist, onPersist, setPersistentKey
Methods inherited from class org.ameba.integration.jpa.BaseEntity
getCreatedBy, getCreateDt, getLastModifiedBy, getLastModifiedDt, getOl, getPk, isNew, setOl
-
Field Details
-
product
The Product this relation belongs to. -
label
An identifying label of the UomRelation. -
code
An internal identifying code of UomRelation -
unit
@NotNull private @NotNull org.openwms.core.units.api.Measurable unitThe 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:
equals
in classorg.ameba.integration.jpa.ApplicationEntity
-
hashCode
public int hashCode()- Overrides:
hashCode
in classorg.ameba.integration.jpa.ApplicationEntity
-