Package balu.pizza.webapp.models
Class Cafe
java.lang.Object
balu.pizza.webapp.models.Cafe
The Entity of the cafe
-
Constructor Details
-
Cafe
public Cafe()Empty class constructor -
Cafe
Class constructor- Parameters:
title
- Name of cafecity
- Full addressemail
- Emailphone
- PhoneopenAt
- Cafe opening timecloseAt
- Cafe closing time
-
-
Method Details
-
getSortedPizza
- Returns:
- List sorted by price of pizzas related to the cafe
-
getId
public int getId()- Returns:
- Identity of cafe
-
setId
public void setId(int id) -
getTitle
-
setTitle
-
getCity
-
setCity
-
getEmail
-
setEmail
-
getPhone
-
setPhone
-
getOpenAt
-
setOpenAt
-
getCloseAt
-
setCloseAt
-
getPizzas
Get list of pizzas- Returns:
- List of pizzas related to the cafe
-
setPizzas
-
getImage
-
setImage
-
toString
-