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