Class UniqueInventoryItem
- java.lang.Object
 - 
- org.salespointframework.core.AbstractEntity<InventoryItemIdentifier>
 - 
- org.salespointframework.inventory.InventoryItem<UniqueInventoryItem>
 - 
- org.salespointframework.inventory.UniqueInventoryItem
 
 
 
 
- 
- All Implemented Interfaces:
 org.springframework.data.domain.Persistable<InventoryItemIdentifier>
@Entity public class UniqueInventoryItem extends InventoryItem<UniqueInventoryItem>
AnInventoryItemthat requires a unique one-to-one relationship to aProductinstance.- Since:
 - 7.2
 - Author:
 - Oliver Drotbohm
 
 
- 
- 
Constructor Summary
Constructors Modifier Constructor Description protectedUniqueInventoryItem()UniqueInventoryItem(Product product, Quantity quantity) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProductgetProduct()- 
Methods inherited from class org.salespointframework.inventory.InventoryItem
decreaseQuantity, getId, getQuantity, hasSufficientQuantity, increaseQuantity, keepsTrackOf, toString 
- 
Methods inherited from class org.salespointframework.core.AbstractEntity
equals, hashCode, isNew 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
UniqueInventoryItem
public UniqueInventoryItem(Product product, Quantity quantity)
- Parameters:
 product- theProductfor thisUniqueInventoryItem, must not be null.quantity- the initialQuantityfor thisUniqueInventoryItem, must not be null.
 
- 
UniqueInventoryItem
protected UniqueInventoryItem()
 
 - 
 
- 
Method Detail
- 
getProduct
public Product getProduct()
- Specified by:
 getProductin classInventoryItem<UniqueInventoryItem>
 
 - 
 
 -