Class UniqueInventoryItem
java.lang.Object
org.salespointframework.core.AbstractEntity<ID>
org.salespointframework.core.AbstractAggregateRoot<InventoryItem.InventoryItemIdentifier>
org.salespointframework.inventory.InventoryItem<UniqueInventoryItem>
org.salespointframework.inventory.UniqueInventoryItem
- All Implemented Interfaces:
Persistable<InventoryItem.InventoryItemIdentifier>
An
InventoryItem that requires a unique one-to-one relationship to a Product instance.- Since:
- 7.2
- Author:
- Oliver Drotbohm
-
Nested Class Summary
Nested classes/interfaces inherited from class org.salespointframework.inventory.InventoryItem
InventoryItem.InventoryItemIdentifier -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.salespointframework.inventory.InventoryItem
decreaseQuantity, getId, getQuantity, hasSufficientQuantity, increaseQuantity, keepsTrackOf, toStringMethods inherited from class org.salespointframework.core.AbstractAggregateRoot
registerEventMethods inherited from class org.salespointframework.core.AbstractEntity
equals, hashCode, hasId, isNew
-
Constructor Details
-
UniqueInventoryItem
- Parameters:
product- theProductfor thisUniqueInventoryItem, must not be null.quantity- the initialQuantityfor thisUniqueInventoryItem, must not be null.
-
-
Method Details
-
getProduct
Description copied from class:InventoryItemReturns theProductthisInventoryItembelongs to.- Specified by:
getProductin classInventoryItem<UniqueInventoryItem>- Returns:
- must not be null.
-