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 Details

    • product

      @NotNull private @NotNull Product product
      The Product this relation belongs to.
    • label

      private String label
      An identifying label of the UomRelation.
    • code

      private String code
      An internal identifying 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

      private String description
      Textual descriptive text.
    • dimension

      private Dimension dimension
      The defined dimension of the UomRelation.
    • details

      private Map<String,String> details
      Arbitrary detail information on this product unit, might be populated with ERP information.
  • Constructor Details

    • UomRelation

      protected UomRelation()
      Dear JPA.
    • UomRelation

      public UomRelation(String label, @NotNull @NotNull org.openwms.core.units.api.Measurable unit)
    • UomRelation

      public UomRelation(org.openwms.core.units.api.Measurable unit)
  • Method Details

    • getProduct

      public Product getProduct()
    • setProduct

      public void setProduct(Product product)
    • getLabel

      public String getLabel()
    • setLabel

      public void setLabel(String label)
    • getCode

      public String getCode()
    • setCode

      public void setCode(String internalCode)
    • getUnit

      public org.openwms.core.units.api.Measurable getUnit()
    • setUnit

      public void setUnit(org.openwms.core.units.api.Measurable unit)
    • getDescription

      public String getDescription()
    • setDescription

      public void setDescription(String description)
    • getDimension

      public Dimension getDimension()
    • setDimension

      public void setDimension(Dimension dimension)
    • getDetails

      public Map<String,String> getDetails()
    • setDetails

      public void setDetails(Map<String,String> details)
    • addDetail

      public UomRelation addDetail(String key, String value)
      Add a new detail to the UomRelation.
      Parameters:
      key - The unique key of the detail
      value - The value as String
      Returns:
      This instance
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class org.ameba.integration.jpa.ApplicationEntity
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class org.ameba.integration.jpa.ApplicationEntity