Class Cafe

java.lang.Object
balu.pizza.webapp.models.Cafe

@Entity public class Cafe extends Object
The Entity of the cafe
  • Constructor Details

    • Cafe

      public Cafe()
      Empty class constructor
    • Cafe

      public Cafe(String title, String city, String email, String phone, String openAt, String closeAt)
      Class constructor
      Parameters:
      title - Name of cafe
      city - Full address
      email - Email
      phone - Phone
      openAt - Cafe opening time
      closeAt - Cafe closing time
  • Method Details

    • getSortedPizza

      public List<Pizza> 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

      public String getTitle()
    • setTitle

      public void setTitle(String title)
    • getCity

      public String getCity()
    • setCity

      public void setCity(String city)
    • getEmail

      public String getEmail()
    • setEmail

      public void setEmail(String email)
    • getPhone

      public String getPhone()
    • setPhone

      public void setPhone(String phone)
    • getOpenAt

      public String getOpenAt()
    • setOpenAt

      public void setOpenAt(String openAt)
    • getCloseAt

      public String getCloseAt()
    • setCloseAt

      public void setCloseAt(String closeAt)
    • getPizzas

      public List<Pizza> getPizzas()
      Get list of pizzas
      Returns:
      List of pizzas related to the cafe
    • setPizzas

      public void setPizzas(List<Pizza> pizzas)
    • getImage

      public String getImage()
    • setImage

      public void setImage(String image)
    • toString

      public String toString()
      Overrides:
      toString in class Object