Package org.openwms.wms.shipping.impl
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 Summary
Modifier and TypeFieldDescriptionprivate String
Textual descriptive text.Arbitrary detail information on this product, might be by populated with ERP information.private @NotBlank String
The foreign persistent key of theProduct
.private String
An identifying label of the Product.private @NotBlank String
The product id is the unique business key.private String
Where the Product has to be placed in stock.Fields inherited from class org.ameba.integration.jpa.ApplicationEntity
C_ID
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Uses the sku for comparison.boolean
All fields.getLabel()
getSku()
int
hashCode()
All fields.void
setDescription
(String description) void
setDetails
(Map<String, String> details) void
setForeignPKey
(String foreignPKey) void
void
void
setStockZone
(String stockZone) toString()
Return the SKU.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
-
foreignPKey
The foreign persistent key of theProduct
. -
sku
The product id is the unique business key. -
label
An identifying label of the Product. -
description
Textual descriptive text. -
stockZone
Where the Product has to be placed in stock. -
details
Arbitrary detail information on this product, might be by populated with ERP information.
-
-
Constructor Details
-
Product
protected Product()Dear JPA ... -
Product
Deprecated. -
Product
-
-
Method Details
-
getForeignPKey
-
setForeignPKey
-
getSku
-
setSku
-
getLabel
-
setLabel
-
getDescription
-
setDescription
-
getDetails
-
setDetails
-
getStockZone
-
setStockZone
-
compareTo
Uses the sku for comparison.- Specified by:
compareTo
in interfaceComparable<Product>
-
toString
Return the SKU. -
equals
All fields.- Overrides:
equals
in classorg.ameba.integration.jpa.ApplicationEntity
-
hashCode
public int hashCode()All fields.- Overrides:
hashCode
in classorg.ameba.integration.jpa.ApplicationEntity
-