Class Product

java.lang.Object
org.ameba.integration.jpa.BaseEntity
org.ameba.integration.jpa.ApplicationEntity
org.openwms.wms.shipping.impl.Product
All Implemented Interfaces:
Serializable, Comparable<Product>, org.ameba.integration.TypedEntity<Long>

@Entity public class Product extends org.ameba.integration.jpa.ApplicationEntity implements Comparable<Product>, Serializable
A Product is the representation of a Product like it is seen in the Shipping Service.
Author:
Heiko Scherrer
See Also:
  • Field Details

    • foreignPKey

      @NotBlank private @NotBlank String foreignPKey
      The foreign persistent key of the Product.
    • sku

      @NotBlank private @NotBlank String sku
      The product id is the unique business key.
    • label

      private String label
      An identifying label of the Product.
    • description

      private String description
      Textual descriptive text.
    • stockZone

      private String stockZone
      Where the Product has to be placed in stock.
    • details

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

    • Product

      protected Product()
      Dear JPA ...
    • Product

      @Deprecated public Product(String sku)
      Deprecated.
    • Product

      public Product(String sku, String foreignPKey)
  • Method Details

    • getForeignPKey

      public String getForeignPKey()
    • setForeignPKey

      public void setForeignPKey(String foreignPKey)
    • getSku

      public String getSku()
    • setSku

      public void setSku(String sku)
    • getLabel

      public String getLabel()
    • setLabel

      public void setLabel(String label)
    • getDescription

      public String getDescription()
    • setDescription

      public void setDescription(String description)
    • getDetails

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

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

      public String getStockZone()
    • setStockZone

      public void setStockZone(String stockZone)
    • compareTo

      public int compareTo(Product o)
      Uses the sku for comparison.
      Specified by:
      compareTo in interface Comparable<Product>
    • toString

      public String toString()
      Return the SKU.
      Overrides:
      toString in class Object
    • equals

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

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