author | František Kučera <franta-hg@frantovo.cz> |
Thu, 04 Mar 2010 11:00:19 +0100 | |
changeset 50 | d259a2dfea67 |
child 52 | 4c0408690ebf |
permissions | -rw-r--r-- |
franta-hg@50 | 1 |
package cz.frantovo.nekurak.ejb; |
franta-hg@50 | 2 |
|
franta-hg@50 | 3 |
import cz.frantovo.nekurak.dao.UzivatelDAO; |
franta-hg@50 | 4 |
import cz.frantovo.nekurak.dto.Uzivatel; |
franta-hg@50 | 5 |
import javax.ejb.EJB; |
franta-hg@50 | 6 |
import javax.ejb.Stateless; |
franta-hg@50 | 7 |
|
franta-hg@50 | 8 |
/** |
franta-hg@50 | 9 |
* |
franta-hg@50 | 10 |
* @author fiki |
franta-hg@50 | 11 |
*/ |
franta-hg@50 | 12 |
@Stateless |
franta-hg@50 | 13 |
public class UzivatelEJB implements UzivatelRemote { |
franta-hg@50 | 14 |
|
franta-hg@50 | 15 |
@EJB |
franta-hg@50 | 16 |
private UzivatelDAO uzivatelDao; |
franta-hg@50 | 17 |
|
franta-hg@50 | 18 |
/** Uživatele může zakládat kdokoli – uživatel se registruje sám. */ |
franta-hg@50 | 19 |
public void zalozUzivatele(Uzivatel u) { |
franta-hg@50 | 20 |
uzivatelDao.uloz(u); |
franta-hg@50 | 21 |
} |
franta-hg@50 | 22 |
} |