java/nekurak.net-lib/src/cz/frantovo/nekurak/dto/Podnik.java
author František Kučera <franta-hg@frantovo.cz>
Tue Mar 16 14:13:14 2010 +0100 (2010-03-16)
changeset 71 3829d619369c
parent 63 619b0d3732eb
child 72 81c64c582a26
permissions -rw-r--r--
SLQ: aktualizace datového modelu.
franta-hg@10
     1
package cz.frantovo.nekurak.dto;
franta-hg@10
     2
franta-hg@12
     3
import java.io.Serializable;
franta-hg@39
     4
import java.util.Date;
franta-hg@67
     5
import java.util.HashSet;
franta-hg@67
     6
import java.util.Set;
franta-hg@12
     7
franta-hg@10
     8
/**
franta-hg@50
     9
 * Podnik – hospoda, bar, kavárna…
franta-hg@10
    10
 * @author fiki
franta-hg@10
    11
 */
franta-hg@12
    12
public class Podnik implements Serializable {
franta-hg@10
    13
franta-hg@10
    14
    private int id;
franta-hg@10
    15
    private String nazev;
franta-hg@39
    16
    private String popis;
franta-hg@39
    17
    private String url;
franta-hg@39
    18
    private String ulice;
franta-hg@39
    19
    private Date datum;
franta-hg@39
    20
    private int cisloPopisne;
franta-hg@39
    21
    private String mesto;
franta-hg@63
    22
    private String spravce;
franta-hg@67
    23
    private Set<Fotka> fotky = new HashSet<Fotka>();
franta-hg@10
    24
franta-hg@10
    25
    public Podnik() {
franta-hg@10
    26
    }
franta-hg@10
    27
franta-hg@10
    28
    public Podnik(int id, String nazev) {
franta-hg@10
    29
	this.id = id;
franta-hg@10
    30
	this.nazev = nazev;
franta-hg@10
    31
    }
franta-hg@10
    32
franta-hg@10
    33
    public int getId() {
franta-hg@10
    34
	return id;
franta-hg@10
    35
    }
franta-hg@10
    36
franta-hg@10
    37
    public void setId(int id) {
franta-hg@10
    38
	this.id = id;
franta-hg@10
    39
    }
franta-hg@10
    40
franta-hg@10
    41
    public String getNazev() {
franta-hg@10
    42
	return nazev;
franta-hg@10
    43
    }
franta-hg@10
    44
franta-hg@10
    45
    public void setNazev(String nazev) {
franta-hg@10
    46
	this.nazev = nazev;
franta-hg@10
    47
    }
franta-hg@10
    48
franta-hg@39
    49
    public String getPopis() {
franta-hg@39
    50
	return popis;
franta-hg@39
    51
    }
franta-hg@39
    52
franta-hg@39
    53
    public void setPopis(String popis) {
franta-hg@39
    54
	this.popis = popis;
franta-hg@39
    55
    }
franta-hg@39
    56
franta-hg@39
    57
    public String getUrl() {
franta-hg@39
    58
	return url;
franta-hg@39
    59
    }
franta-hg@39
    60
franta-hg@39
    61
    public void setUrl(String url) {
franta-hg@39
    62
	this.url = url;
franta-hg@39
    63
    }
franta-hg@39
    64
franta-hg@39
    65
    public String getUlice() {
franta-hg@39
    66
	return ulice;
franta-hg@39
    67
    }
franta-hg@39
    68
franta-hg@39
    69
    public void setUlice(String ulice) {
franta-hg@39
    70
	this.ulice = ulice;
franta-hg@39
    71
    }
franta-hg@39
    72
franta-hg@39
    73
    public Date getDatum() {
franta-hg@39
    74
	return datum;
franta-hg@39
    75
    }
franta-hg@39
    76
franta-hg@39
    77
    public void setDatum(Date datum) {
franta-hg@39
    78
	this.datum = datum;
franta-hg@39
    79
    }
franta-hg@39
    80
franta-hg@39
    81
    public int getCisloPopisne() {
franta-hg@39
    82
	return cisloPopisne;
franta-hg@39
    83
    }
franta-hg@39
    84
franta-hg@39
    85
    public void setCisloPopisne(int cisloPopisne) {
franta-hg@39
    86
	this.cisloPopisne = cisloPopisne;
franta-hg@39
    87
    }
franta-hg@39
    88
franta-hg@39
    89
    public String getMesto() {
franta-hg@39
    90
	return mesto;
franta-hg@39
    91
    }
franta-hg@39
    92
franta-hg@39
    93
    public void setMesto(String mesto) {
franta-hg@39
    94
	this.mesto = mesto;
franta-hg@39
    95
    }
franta-hg@63
    96
franta-hg@63
    97
    public String getSpravce() {
franta-hg@63
    98
	return spravce;
franta-hg@63
    99
    }
franta-hg@63
   100
franta-hg@63
   101
    public void setSpravce(String spravce) {
franta-hg@63
   102
	this.spravce = spravce;
franta-hg@63
   103
    }
franta-hg@67
   104
franta-hg@67
   105
    public Set<Fotka> getFotky() {
franta-hg@67
   106
	return fotky;
franta-hg@67
   107
    }
franta-hg@67
   108
franta-hg@67
   109
    public void setFotky(Set<Fotka> fotky) {
franta-hg@67
   110
	this.fotky = fotky;
franta-hg@67
   111
    }
franta-hg@10
   112
}