java/nekurak.net-lib/src/cz/frantovo/nekurak/dto/Podnik.java
author František Kučera <franta-hg@frantovo.cz>
Tue, 08 Jun 2010 02:37:04 +0200
changeset 127 2b6107e510d8
parent 104 e774a42b8e2a
child 145 0efefbf5f8b6
permissions -rw-r--r--
výpis komentářů
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@10
    16
    private int id;
franta-hg@10
    17
    private String nazev;
franta-hg@39
    18
    private String popis;
franta-hg@39
    19
    private String url;
franta-hg@39
    20
    private String ulice;
franta-hg@39
    21
    private Date datum;
franta-hg@104
    22
    private Integer cisloPopisne;
franta-hg@39
    23
    private String mesto;
franta-hg@63
    24
    private String spravce;
franta-hg@72
    25
    private List<Fotka> fotky = new ArrayList<Fotka>();
franta-hg@127
    26
    private Set<Komentar> komentare = new HashSet<Komentar>();
franta-hg@100
    27
    private Double sirka;
franta-hg@100
    28
    private Double delka;
franta-hg@10
    29
franta-hg@10
    30
    public Podnik() {
franta-hg@10
    31
    }
franta-hg@10
    32
franta-hg@10
    33
    public Podnik(int id, String nazev) {
franta-hg@10
    34
	this.id = id;
franta-hg@10
    35
	this.nazev = nazev;
franta-hg@10
    36
    }
franta-hg@10
    37
franta-hg@10
    38
    public int getId() {
franta-hg@10
    39
	return id;
franta-hg@10
    40
    }
franta-hg@10
    41
franta-hg@10
    42
    public void setId(int id) {
franta-hg@10
    43
	this.id = id;
franta-hg@10
    44
    }
franta-hg@10
    45
franta-hg@10
    46
    public String getNazev() {
franta-hg@10
    47
	return nazev;
franta-hg@10
    48
    }
franta-hg@10
    49
franta-hg@10
    50
    public void setNazev(String nazev) {
franta-hg@10
    51
	this.nazev = nazev;
franta-hg@10
    52
    }
franta-hg@10
    53
franta-hg@39
    54
    public String getPopis() {
franta-hg@39
    55
	return popis;
franta-hg@39
    56
    }
franta-hg@39
    57
franta-hg@39
    58
    public void setPopis(String popis) {
franta-hg@39
    59
	this.popis = popis;
franta-hg@39
    60
    }
franta-hg@39
    61
franta-hg@39
    62
    public String getUrl() {
franta-hg@39
    63
	return url;
franta-hg@39
    64
    }
franta-hg@39
    65
franta-hg@39
    66
    public void setUrl(String url) {
franta-hg@39
    67
	this.url = url;
franta-hg@39
    68
    }
franta-hg@39
    69
franta-hg@39
    70
    public String getUlice() {
franta-hg@39
    71
	return ulice;
franta-hg@39
    72
    }
franta-hg@39
    73
franta-hg@39
    74
    public void setUlice(String ulice) {
franta-hg@39
    75
	this.ulice = ulice;
franta-hg@39
    76
    }
franta-hg@39
    77
franta-hg@39
    78
    public Date getDatum() {
franta-hg@39
    79
	return datum;
franta-hg@39
    80
    }
franta-hg@39
    81
franta-hg@39
    82
    public void setDatum(Date datum) {
franta-hg@39
    83
	this.datum = datum;
franta-hg@39
    84
    }
franta-hg@39
    85
franta-hg@39
    86
    public int getCisloPopisne() {
franta-hg@39
    87
	return cisloPopisne;
franta-hg@39
    88
    }
franta-hg@39
    89
franta-hg@39
    90
    public void setCisloPopisne(int cisloPopisne) {
franta-hg@39
    91
	this.cisloPopisne = cisloPopisne;
franta-hg@39
    92
    }
franta-hg@39
    93
franta-hg@39
    94
    public String getMesto() {
franta-hg@39
    95
	return mesto;
franta-hg@39
    96
    }
franta-hg@39
    97
franta-hg@39
    98
    public void setMesto(String mesto) {
franta-hg@39
    99
	this.mesto = mesto;
franta-hg@39
   100
    }
franta-hg@63
   101
franta-hg@63
   102
    public String getSpravce() {
franta-hg@63
   103
	return spravce;
franta-hg@63
   104
    }
franta-hg@63
   105
franta-hg@63
   106
    public void setSpravce(String spravce) {
franta-hg@63
   107
	this.spravce = spravce;
franta-hg@63
   108
    }
franta-hg@67
   109
franta-hg@72
   110
    public List<Fotka> getFotky() {
franta-hg@67
   111
	return fotky;
franta-hg@67
   112
    }
franta-hg@67
   113
franta-hg@72
   114
    public void setFotky(List<Fotka> fotky) {
franta-hg@67
   115
	this.fotky = fotky;
franta-hg@67
   116
    }
franta-hg@100
   117
franta-hg@100
   118
    public Double getSirka() {
franta-hg@100
   119
	return sirka;
franta-hg@100
   120
    }
franta-hg@100
   121
franta-hg@100
   122
    public void setSirka(Double sirka) {
franta-hg@100
   123
	this.sirka = sirka;
franta-hg@100
   124
    }
franta-hg@100
   125
franta-hg@100
   126
    public Double getDelka() {
franta-hg@100
   127
	return delka;
franta-hg@100
   128
    }
franta-hg@100
   129
franta-hg@100
   130
    public void setDelka(Double delka) {
franta-hg@100
   131
	this.delka = delka;
franta-hg@100
   132
    }
franta-hg@127
   133
franta-hg@127
   134
    public Set<Komentar> getKomentare() {
franta-hg@127
   135
	return komentare;
franta-hg@127
   136
    }
franta-hg@127
   137
franta-hg@127
   138
    public void setKomentare(Set<Komentar> komentare) {
franta-hg@127
   139
	this.komentare = komentare;
franta-hg@127
   140
    }
franta-hg@10
   141
}