java/nekurak.net-lib/src/cz/frantovo/nekurak/dto/Kategorie.java
author František Kučera <franta-hg@frantovo.cz>
Sat Jan 15 00:57:45 2011 +0100 (2011-01-15)
changeset 170 56deca862adc
parent 163 5f0d5e1305b3
permissions -rw-r--r--
Filtrování podniků podle kategorie.
franta-hg@154
     1
package cz.frantovo.nekurak.dto;
franta-hg@154
     2
franta-hg@154
     3
/**
franta-hg@154
     4
 * Kategorie, do které podnik patří.
franta-hg@154
     5
 * Např. hospoda, bar, restaurace nebo cukrárna.
franta-hg@154
     6
 * Podnik může patřit do více kategorií (měl by patřit alespoň do jedné).
franta-hg@163
     7
 *
franta-hg@163
     8
 * Entita obsahuje pouze ID a ne název a popis – ty musíme překládat – proto je načítáme z lokalizačních souborů.
franta-hg@163
     9
 *
franta-hg@154
    10
 * @author fiki
franta-hg@154
    11
 */
franta-hg@154
    12
public class Kategorie {
franta-hg@154
    13
franta-hg@154
    14
	private int id;
franta-hg@154
    15
franta-hg@170
    16
	public Kategorie() {
franta-hg@170
    17
	}
franta-hg@170
    18
franta-hg@170
    19
	public Kategorie(int id) {
franta-hg@170
    20
		this.id = id;
franta-hg@170
    21
	}
franta-hg@170
    22
franta-hg@154
    23
	public int getId() {
franta-hg@154
    24
		return id;
franta-hg@154
    25
	}
franta-hg@154
    26
franta-hg@154
    27
	public void setId(int id) {
franta-hg@154
    28
		this.id = id;
franta-hg@154
    29
	}
franta-hg@154
    30
}