author | František Kučera <franta-hg@frantovo.cz> |
Sun Jun 20 14:46:47 2010 +0200 (2010-06-20) | |
changeset 145 | 0efefbf5f8b6 |
parent 40 | 67d332d48562 |
permissions | -rw-r--r-- |
franta-hg@40 | 1 |
package cz.frantovo.nekurak.web; |
franta-hg@40 | 2 |
|
franta-hg@40 | 3 |
import cz.frantovo.nekurak.dto.Podnik; |
franta-hg@40 | 4 |
|
franta-hg@40 | 5 |
public class PridatPodnik { |
franta-hg@40 | 6 |
|
franta-hg@145 | 7 |
private HledacSluzby hledac = new HledacSluzby(); |
franta-hg@145 | 8 |
private Podnik podnik = new Podnik(); |
franta-hg@40 | 9 |
|
franta-hg@145 | 10 |
public Podnik getPodnik() { |
franta-hg@145 | 11 |
return podnik; |
franta-hg@145 | 12 |
} |
franta-hg@40 | 13 |
|
franta-hg@145 | 14 |
public void setPodnik(Podnik podnik) { |
franta-hg@145 | 15 |
this.podnik = podnik; |
franta-hg@145 | 16 |
} |
franta-hg@40 | 17 |
|
franta-hg@145 | 18 |
public boolean getPridano() { |
franta-hg@145 | 19 |
hledac.getPodnikEJB().zalozPodnik(podnik); |
franta-hg@145 | 20 |
return true; |
franta-hg@145 | 21 |
} |
franta-hg@40 | 22 |
} |