Package com.esprit.models.products
Class OrderItem
java.lang.Object
com.esprit.models.products.OrderItem
Represents an item in an order.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
id
-
quantity
private int quantity -
product
-
order
-
-
Constructor Details
-
OrderItem
Constructor without id for creating new order item instances.- Parameters:
quantity
- The quantity of the item.product
- The product associated with the item.order
- The order associated with the item.
-