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