1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/java/nekurak.net-web/src/java/cz/frantovo/nekurak/web/PridatPodnik.java Thu Feb 25 08:26:46 2010 +0100
1.3 @@ -0,0 +1,23 @@
1.4 +package cz.frantovo.nekurak.web;
1.5 +
1.6 +import cz.frantovo.nekurak.dto.Podnik;
1.7 +
1.8 +public class PridatPodnik {
1.9 +
1.10 + private HledacSluzby hledac = new HledacSluzby();
1.11 +
1.12 + private Podnik podnik = new Podnik();
1.13 +
1.14 + public Podnik getPodnik() {
1.15 + return podnik;
1.16 + }
1.17 +
1.18 + public void setPodnik(Podnik podnik) {
1.19 + this.podnik = podnik;
1.20 + }
1.21 +
1.22 + public boolean getPridano() {
1.23 + hledac.getPodnikEJB().zalozPodnik(podnik);
1.24 + return true;
1.25 + }
1.26 +}