Interface Inventory<T extends InventoryItem<?>>

    • Method Detail

      • findItemsOutOfStock

        @Query("select i from #{#entityName} i where i.quantity.amount <= 0")
        org.springframework.data.util.Streamable<T> findItemsOutOfStock()
        Returns all UniqueInventoryItems that are out of stock (i.e. the Quantity's amount is equal or less than zero).
        Returns:
        will never be null.