package cz.triangle.dostal.trzby;

import java.io.Serializable;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * @hibernate.class
 * table = "uzivatel"
 * 
 */
public class Uzivatel implements Serializable{

	protected Long id;
	protected String jmeno;
	protected String prijmeni;
	protected String uzivJmeno;
	protected String heslo;
	protected Set provozovny = new HashSet();
	protected int dovolena;
	protected int zustatekDovolena;
	protected float hodinovka;
	protected int uvazek;
	protected boolean soboty;
	protected Date nastup;
	protected Date konec;
	protected float doplatek_stravenka;
	protected float cena_stravenka;
	protected Boolean skryty;
	/**
	 * @hibernate.id
	 * generator-class = "native"
	 * @hibernate.generator-param name = "sequence" value = "uzivatel_id_seq" 
	 */
	public Long getId() {
		return id;
	}

	/**
	 * @hibernate.property 
	 */
	public String getJmeno() {
		return jmeno;
	}

	/**
	 * @hibernate.property 
	 */
	public String getPrijmeni() {
		return prijmeni;
	}

	/**
	 * @hibernate.property 
	 */
	public String getUzivJmeno() {
		return uzivJmeno;
	}

	/**
	 * @param long1
	 */
	public void setId(Long long1) {
		id = long1;
	}

	/**
	 * @param string
	 */
	public void setJmeno(String string) {
		jmeno = string;
	}

	/**
	 * @param string
	 */
	public void setPrijmeni(String string) {
		prijmeni = string;
	}

	/**
	 * @param string
	 */
	public void setUzivJmeno(String string) {
		uzivJmeno = string;
	}

	/**
	 * @hibernate.property 
	 */
	public String getHeslo() {
		return heslo;
	}

	/**
	 * @param string
	 */
	public void setHeslo(String string) {
		heslo = string;
	}

	/**
	 * @hibernate.set
	 * table = "provozovna_uzivatel"
	 * order-by = "id_provozovna"
	 * lazy = "false"
	 * @hibernate.collection-key
	 * column = "id_uzivatel"
	 * @hibernate.collection-many-to-many 
	 * column = "id_provozovna"
	 * class = "cz.triangle.dostal.trzby.Provozovna"
	 */
	public Set getProvozovny() {
		return provozovny;
	}

	/**
	 * @param set
	 */
	public void setProvozovny(Set set) {
		provozovny = set;
	}

	public String getCeleJmeno(){
		return getPrijmeni()+" "+getJmeno();
	}
	/**
	 * @return hodnotu rocni dovolene
	 * 
	 * @hibernate.property
	 * 
	 */
	public int getDovolena() {
		return dovolena;
	}

	/**
	 * @hibernate.property column = "zustatek_dovolena"
	 */
	public int getZustatekDovolena() {
		return zustatekDovolena;
	}

	/**
	 * @param i
	 */
	public void setDovolena(int i) {
		dovolena = i;
	}

	/**
	 * @param i
	 */
	public void setZustatekDovolena(int i) {
		zustatekDovolena = i;
	}

	/**
	 * @hibernate.property 
	 */
	public float getHodinovka() {
		return hodinovka;
	}

	/**
	 * @param f
	 */
	public void setHodinovka(float f) {
		hodinovka = f;
	}

	/**
	 * @hibernate.property column = "uvazek_soboty"
	 */
	public boolean isSoboty() {
		return soboty;
	}

	/**
	 * @hibernate.property 
	 */
	public int getUvazek() {
		return uvazek;
	}

	/**
	 * @param b
	 */
	public void setSoboty(boolean b) {
		soboty = b;
	}

	/**
	 * @param i
	 */
	public void setUvazek(int i) {
		uvazek = i;
	}

	/**
	 * @hibernate.property 
	 */
    public Date getNastup() {
        return nastup;
    }
    /**
     * @param nastup The nastup to set.
     */
    public void setNastup(Date nastup) {
        this.nastup = nastup;
    }
	/**
	 * @hibernate.property 
	 */
	public Date getKonec() {
		return konec;
	}
	/**
	 * @param konec The konec to set.
	 */
	public void setKonec(Date konec) {
		this.konec = konec;
	}

	/**
	 * @hibernate.property 
	 */
	public float getCena_stravenka() {
		return cena_stravenka;
	}

	/**
	 * @param cena_stravenky The cena_stravenky to set.
	 */
	public void setCena_stravenka(float cena_stravenky) {
		this.cena_stravenka = cena_stravenky;
	}

	/**
	 * @return Returns the doplatek_stravenky.
	 * @hibernate.property 
	 */
	public float getDoplatek_stravenka() {
		return doplatek_stravenka;
	}

	/**
	 * @param doplatek_stravenky The doplatek_stravenky to set.
	 */
	public void setDoplatek_stravenka(float doplatek_stravenky) {
		this.doplatek_stravenka = doplatek_stravenky;
	}

	public Boolean getSkryty() {
		return skryty;
	}

	public void setSkryty(Boolean skryty) {
		this.skryty = skryty;
	}
}