author | František Kučera <franta-hg@frantovo.cz> |
Thu, 04 Mar 2010 14:09:21 +0100 | |
changeset 52 | 4c0408690ebf |
parent 40 | 67d332d48562 |
child 145 | 0efefbf5f8b6 |
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@40 | 7 |
private HledacSluzby hledac = new HledacSluzby(); |
franta-hg@40 | 8 |
|
franta-hg@40 | 9 |
private Podnik podnik = new Podnik(); |
franta-hg@40 | 10 |
|
franta-hg@40 | 11 |
public Podnik getPodnik() { |
franta-hg@40 | 12 |
return podnik; |
franta-hg@40 | 13 |
} |
franta-hg@40 | 14 |
|
franta-hg@40 | 15 |
public void setPodnik(Podnik podnik) { |
franta-hg@40 | 16 |
this.podnik = podnik; |
franta-hg@40 | 17 |
} |
franta-hg@40 | 18 |
|
franta-hg@40 | 19 |
public boolean getPridano() { |
franta-hg@40 | 20 |
hledac.getPodnikEJB().zalozPodnik(podnik); |
franta-hg@40 | 21 |
return true; |
franta-hg@40 | 22 |
} |
franta-hg@40 | 23 |
} |