franta-hg@10: package cz.frantovo.nekurak.dto; franta-hg@10: franta-hg@12: import java.io.Serializable; franta-hg@72: import java.util.ArrayList; franta-hg@39: import java.util.Date; franta-hg@127: import java.util.HashSet; franta-hg@72: import java.util.List; franta-hg@127: import java.util.Set; franta-hg@12: franta-hg@10: /** franta-hg@50: * Podnik – hospoda, bar, kavárna… franta-hg@10: * @author fiki franta-hg@10: */ franta-hg@12: public class Podnik implements Serializable { franta-hg@10: franta-hg@10: private int id; franta-hg@10: private String nazev; franta-hg@39: private String popis; franta-hg@39: private String url; franta-hg@39: private String ulice; franta-hg@39: private Date datum; franta-hg@104: private Integer cisloPopisne; franta-hg@39: private String mesto; franta-hg@63: private String spravce; franta-hg@72: private List fotky = new ArrayList(); franta-hg@127: private Set komentare = new HashSet(); franta-hg@100: private Double sirka; franta-hg@100: private Double delka; franta-hg@10: franta-hg@10: public Podnik() { franta-hg@10: } franta-hg@10: franta-hg@10: public Podnik(int id, String nazev) { franta-hg@10: this.id = id; franta-hg@10: this.nazev = nazev; franta-hg@10: } franta-hg@10: franta-hg@10: public int getId() { franta-hg@10: return id; franta-hg@10: } franta-hg@10: franta-hg@10: public void setId(int id) { franta-hg@10: this.id = id; franta-hg@10: } franta-hg@10: franta-hg@10: public String getNazev() { franta-hg@10: return nazev; franta-hg@10: } franta-hg@10: franta-hg@10: public void setNazev(String nazev) { franta-hg@10: this.nazev = nazev; franta-hg@10: } franta-hg@10: franta-hg@39: public String getPopis() { franta-hg@39: return popis; franta-hg@39: } franta-hg@39: franta-hg@39: public void setPopis(String popis) { franta-hg@39: this.popis = popis; franta-hg@39: } franta-hg@39: franta-hg@39: public String getUrl() { franta-hg@39: return url; franta-hg@39: } franta-hg@39: franta-hg@39: public void setUrl(String url) { franta-hg@39: this.url = url; franta-hg@39: } franta-hg@39: franta-hg@39: public String getUlice() { franta-hg@39: return ulice; franta-hg@39: } franta-hg@39: franta-hg@39: public void setUlice(String ulice) { franta-hg@39: this.ulice = ulice; franta-hg@39: } franta-hg@39: franta-hg@39: public Date getDatum() { franta-hg@39: return datum; franta-hg@39: } franta-hg@39: franta-hg@39: public void setDatum(Date datum) { franta-hg@39: this.datum = datum; franta-hg@39: } franta-hg@39: franta-hg@39: public int getCisloPopisne() { franta-hg@39: return cisloPopisne; franta-hg@39: } franta-hg@39: franta-hg@39: public void setCisloPopisne(int cisloPopisne) { franta-hg@39: this.cisloPopisne = cisloPopisne; franta-hg@39: } franta-hg@39: franta-hg@39: public String getMesto() { franta-hg@39: return mesto; franta-hg@39: } franta-hg@39: franta-hg@39: public void setMesto(String mesto) { franta-hg@39: this.mesto = mesto; franta-hg@39: } franta-hg@63: franta-hg@63: public String getSpravce() { franta-hg@63: return spravce; franta-hg@63: } franta-hg@63: franta-hg@63: public void setSpravce(String spravce) { franta-hg@63: this.spravce = spravce; franta-hg@63: } franta-hg@67: franta-hg@72: public List getFotky() { franta-hg@67: return fotky; franta-hg@67: } franta-hg@67: franta-hg@72: public void setFotky(List fotky) { franta-hg@67: this.fotky = fotky; franta-hg@67: } franta-hg@100: franta-hg@100: public Double getSirka() { franta-hg@100: return sirka; franta-hg@100: } franta-hg@100: franta-hg@100: public void setSirka(Double sirka) { franta-hg@100: this.sirka = sirka; franta-hg@100: } franta-hg@100: franta-hg@100: public Double getDelka() { franta-hg@100: return delka; franta-hg@100: } franta-hg@100: franta-hg@100: public void setDelka(Double delka) { franta-hg@100: this.delka = delka; franta-hg@100: } franta-hg@127: franta-hg@127: public Set getKomentare() { franta-hg@127: return komentare; franta-hg@127: } franta-hg@127: franta-hg@127: public void setKomentare(Set komentare) { franta-hg@127: this.komentare = komentare; franta-hg@127: } franta-hg@10: }