Package org.openwms.wms.inventory
Class ProductStackingRule
java.lang.Object
org.ameba.integration.jpa.BaseEntity
org.ameba.integration.jpa.ApplicationEntity
org.openwms.wms.inventory.ProductStackingRule
- All Implemented Interfaces:
Serializable
,org.ameba.integration.TypedEntity<Long>
@Entity
public class ProductStackingRule
extends org.ameba.integration.jpa.ApplicationEntity
implements Serializable
A ProductStackingRule is a rule that defines what kind of
Product
can be stacked on other Product
s. Additionally
a maximum number of units of the stacked Product
s must be defined.- Author:
- Heiko Scherrer
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprivate Product
private Product
ParentProduct
(not-null).private int
Number of units theallowedProduct
can be stacked on the owningbaseProduct
(not-null).(package private) static final String
To separate fields in toString method.Fields inherited from class org.ameba.integration.jpa.ApplicationEntity
C_ID
-
Constructor Summary
ModifierConstructorDescriptionprotected
Dear JPA...(package private)
ProductStackingRule
(int noProducts, Product baseProduct, Product allowedProduct) Create a newProductStackingRule
. -
Method Summary
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
-
SEPARATOR
To separate fields in toString method.- See Also:
-
baseProduct
ParentProduct
(not-null). -
noProducts
private int noProductsNumber of units theallowedProduct
can be stacked on the owningbaseProduct
(not-null). -
allowedProduct
-
-
Constructor Details
-
ProductStackingRule
protected ProductStackingRule()Dear JPA... -
ProductStackingRule
Create a newProductStackingRule
. Define the number ofallowedProduct
s of theallowedProduct
type can be stacked on thisbaseProduct
.
-
-
Method Details
-
getBaseProduct
Get the baseProduct.- Returns:
- The baseProduct.
-
getNoProducts
public int getNoProducts()- Returns:
- The number of allowed Product
-
getAllowedProduct
- Returns:
- The allowed Product
-
equals
- Overrides:
equals
in classorg.ameba.integration.jpa.ApplicationEntity
-
hashCode
public int hashCode()- Overrides:
hashCode
in classorg.ameba.integration.jpa.ApplicationEntity
-
toString
-