public interface Inventory<T extends InventoryItem> extends SalespointRepository<T,InventoryItemIdentifier>
InventoryItems.| Modifier and Type | Method and Description |
|---|---|
default Optional<T> |
findByProduct(Product product)
Returns all
InventoryItems for the given Product. |
Optional<T> |
findByProductIdentifier(ProductIdentifier productIdentifier)
Returns all
InventoryItems for the Product with the given identifier. |
@Query(value="select i from InventoryItem i where i.product.productIdentifier = ?1") Optional<T> findByProductIdentifier(ProductIdentifier productIdentifier)
InventoryItems for the Product with the given identifier.productIdentifier - must not be null.default Optional<T> findByProduct(Product product)
InventoryItems for the given Product.product - must not be null.Copyright © 2014 Pivotal Software, Inc.. All rights reserved.