Package com.cyran.tp.server.orders
Class BoughtProducts
java.lang.Object
com.cyran.tp.server.orders.BoughtProducts
@Entity
public class BoughtProducts
extends java.lang.Object
Class for bought products
- Author:
- Jakub Perdek
-
Constructor Summary
Constructors Constructor Description BoughtProducts()
-
Method Summary
Modifier and Type Method Description java.lang.Integer
getId()
Gets id of bought productOrders
getOrder()
Gets order which contains this productjava.lang.Double
getPrice()
Gets price of bought productProducts
getProduct()
Gets original productjava.lang.Long
getQuantity()
Gets quantity of bought productvoid
setId(java.lang.Integer id)
Sets id of bought productvoid
setOrder(Orders order)
Sets order which contains this productvoid
setPrice(java.lang.Double price)
Sets price of bought productvoid
setProduct(Products product)
Sets reference to original productvoid
setQuantity(java.lang.Long quantity)
Sets quantity of bought product
-
Constructor Details
-
BoughtProducts
public BoughtProducts()
-
-
Method Details
-
getId
public java.lang.Integer getId()Gets id of bought product- Returns:
- id of bought product
-
setId
public void setId(java.lang.Integer id)Sets id of bought product- Parameters:
id
- of bought product
-
getPrice
public java.lang.Double getPrice()Gets price of bought product- Returns:
- price of bought product
-
setPrice
public void setPrice(java.lang.Double price)Sets price of bought product- Parameters:
price
- of bought product
-
getQuantity
public java.lang.Long getQuantity()Gets quantity of bought product- Returns:
- quantity of bought product
-
setQuantity
public void setQuantity(java.lang.Long quantity)Sets quantity of bought product- Parameters:
quantity
- of bought product
-
getOrder
Gets order which contains this product- Returns:
- order which contains this product
-
setOrder
Sets order which contains this product- Parameters:
order
- which contains this product
-
getProduct
Gets original product- Returns:
- original product with its actual price
-
setProduct
Sets reference to original product- Parameters:
product
- - original product with its actual price
-