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