author | František Kučera <franta-hg@frantovo.cz> |
Sat, 08 Jan 2011 21:51:54 +0100 | |
changeset 155 | 0a2943a82c82 |
parent 154 | bf21a4abea9b |
child 156 | 5f14ce03f518 |
permissions | -rw-r--r-- |
franta-hg@10 | 1 |
package cz.frantovo.nekurak.dto; |
franta-hg@10 | 2 |
|
franta-hg@12 | 3 |
import java.io.Serializable; |
franta-hg@72 | 4 |
import java.util.ArrayList; |
franta-hg@39 | 5 |
import java.util.Date; |
franta-hg@127 | 6 |
import java.util.HashSet; |
franta-hg@72 | 7 |
import java.util.List; |
franta-hg@127 | 8 |
import java.util.Set; |
franta-hg@12 | 9 |
|
franta-hg@10 | 10 |
/** |
franta-hg@50 | 11 |
* Podnik – hospoda, bar, kavárna… |
franta-hg@10 | 12 |
* @author fiki |
franta-hg@10 | 13 |
*/ |
franta-hg@12 | 14 |
public class Podnik implements Serializable { |
franta-hg@10 | 15 |
|
franta-hg@145 | 16 |
private int id; |
franta-hg@145 | 17 |
private String nazev; |
franta-hg@145 | 18 |
private String popis; |
franta-hg@145 | 19 |
private String url; |
franta-hg@145 | 20 |
private String ulice; |
franta-hg@145 | 21 |
private Date datum; |
franta-hg@145 | 22 |
private Integer cisloPopisne; |
franta-hg@145 | 23 |
private String mesto; |
franta-hg@145 | 24 |
private String spravce; |
franta-hg@145 | 25 |
private List<Fotka> fotky = new ArrayList<Fotka>(); |
franta-hg@145 | 26 |
private Set<Komentar> komentare = new HashSet<Komentar>(); |
franta-hg@154 | 27 |
private Set<Kategorie> kategorie = new HashSet<Kategorie>(); |
franta-hg@145 | 28 |
private Double sirka; |
franta-hg@145 | 29 |
private Double delka; |
franta-hg@10 | 30 |
|
franta-hg@145 | 31 |
public Podnik() { |
franta-hg@145 | 32 |
} |
franta-hg@10 | 33 |
|
franta-hg@145 | 34 |
public Podnik(int id, String nazev) { |
franta-hg@145 | 35 |
this.id = id; |
franta-hg@145 | 36 |
this.nazev = nazev; |
franta-hg@145 | 37 |
} |
franta-hg@10 | 38 |
|
franta-hg@145 | 39 |
public int getId() { |
franta-hg@145 | 40 |
return id; |
franta-hg@145 | 41 |
} |
franta-hg@10 | 42 |
|
franta-hg@145 | 43 |
public void setId(int id) { |
franta-hg@145 | 44 |
this.id = id; |
franta-hg@145 | 45 |
} |
franta-hg@10 | 46 |
|
franta-hg@145 | 47 |
public String getNazev() { |
franta-hg@145 | 48 |
return nazev; |
franta-hg@145 | 49 |
} |
franta-hg@10 | 50 |
|
franta-hg@145 | 51 |
public void setNazev(String nazev) { |
franta-hg@145 | 52 |
this.nazev = nazev; |
franta-hg@145 | 53 |
} |
franta-hg@10 | 54 |
|
franta-hg@145 | 55 |
public String getPopis() { |
franta-hg@145 | 56 |
return popis; |
franta-hg@145 | 57 |
} |
franta-hg@39 | 58 |
|
franta-hg@145 | 59 |
public void setPopis(String popis) { |
franta-hg@145 | 60 |
this.popis = popis; |
franta-hg@145 | 61 |
} |
franta-hg@39 | 62 |
|
franta-hg@145 | 63 |
public String getUrl() { |
franta-hg@145 | 64 |
return url; |
franta-hg@145 | 65 |
} |
franta-hg@39 | 66 |
|
franta-hg@145 | 67 |
public void setUrl(String url) { |
franta-hg@145 | 68 |
this.url = url; |
franta-hg@145 | 69 |
} |
franta-hg@39 | 70 |
|
franta-hg@145 | 71 |
public String getUlice() { |
franta-hg@145 | 72 |
return ulice; |
franta-hg@145 | 73 |
} |
franta-hg@39 | 74 |
|
franta-hg@145 | 75 |
public void setUlice(String ulice) { |
franta-hg@145 | 76 |
this.ulice = ulice; |
franta-hg@145 | 77 |
} |
franta-hg@39 | 78 |
|
franta-hg@145 | 79 |
public Date getDatum() { |
franta-hg@145 | 80 |
return datum; |
franta-hg@145 | 81 |
} |
franta-hg@39 | 82 |
|
franta-hg@145 | 83 |
public void setDatum(Date datum) { |
franta-hg@145 | 84 |
this.datum = datum; |
franta-hg@145 | 85 |
} |
franta-hg@39 | 86 |
|
franta-hg@145 | 87 |
public int getCisloPopisne() { |
franta-hg@145 | 88 |
return cisloPopisne; |
franta-hg@145 | 89 |
} |
franta-hg@39 | 90 |
|
franta-hg@145 | 91 |
public void setCisloPopisne(int cisloPopisne) { |
franta-hg@145 | 92 |
this.cisloPopisne = cisloPopisne; |
franta-hg@145 | 93 |
} |
franta-hg@39 | 94 |
|
franta-hg@145 | 95 |
public String getMesto() { |
franta-hg@145 | 96 |
return mesto; |
franta-hg@145 | 97 |
} |
franta-hg@39 | 98 |
|
franta-hg@145 | 99 |
public void setMesto(String mesto) { |
franta-hg@145 | 100 |
this.mesto = mesto; |
franta-hg@145 | 101 |
} |
franta-hg@63 | 102 |
|
franta-hg@145 | 103 |
public String getSpravce() { |
franta-hg@145 | 104 |
return spravce; |
franta-hg@145 | 105 |
} |
franta-hg@63 | 106 |
|
franta-hg@145 | 107 |
public void setSpravce(String spravce) { |
franta-hg@145 | 108 |
this.spravce = spravce; |
franta-hg@145 | 109 |
} |
franta-hg@67 | 110 |
|
franta-hg@145 | 111 |
public List<Fotka> getFotky() { |
franta-hg@145 | 112 |
return fotky; |
franta-hg@145 | 113 |
} |
franta-hg@67 | 114 |
|
franta-hg@145 | 115 |
public void setFotky(List<Fotka> fotky) { |
franta-hg@145 | 116 |
this.fotky = fotky; |
franta-hg@145 | 117 |
} |
franta-hg@100 | 118 |
|
franta-hg@145 | 119 |
public Double getSirka() { |
franta-hg@145 | 120 |
return sirka; |
franta-hg@145 | 121 |
} |
franta-hg@100 | 122 |
|
franta-hg@145 | 123 |
public void setSirka(Double sirka) { |
franta-hg@145 | 124 |
this.sirka = sirka; |
franta-hg@145 | 125 |
} |
franta-hg@100 | 126 |
|
franta-hg@145 | 127 |
public Double getDelka() { |
franta-hg@145 | 128 |
return delka; |
franta-hg@145 | 129 |
} |
franta-hg@100 | 130 |
|
franta-hg@145 | 131 |
public void setDelka(Double delka) { |
franta-hg@145 | 132 |
this.delka = delka; |
franta-hg@145 | 133 |
} |
franta-hg@127 | 134 |
|
franta-hg@145 | 135 |
public Set<Komentar> getKomentare() { |
franta-hg@145 | 136 |
return komentare; |
franta-hg@145 | 137 |
} |
franta-hg@127 | 138 |
|
franta-hg@145 | 139 |
public void setKomentare(Set<Komentar> komentare) { |
franta-hg@145 | 140 |
this.komentare = komentare; |
franta-hg@145 | 141 |
} |
franta-hg@154 | 142 |
|
franta-hg@154 | 143 |
public Set<Kategorie> getKategorie() { |
franta-hg@154 | 144 |
return kategorie; |
franta-hg@154 | 145 |
} |
franta-hg@154 | 146 |
|
franta-hg@154 | 147 |
public void setKategorie(Set<Kategorie> kategorie) { |
franta-hg@154 | 148 |
this.kategorie = kategorie; |
franta-hg@154 | 149 |
} |
franta-hg@10 | 150 |
} |