java/HibernateDemo1/HibernateDemo1-ejb/src/java/cz/frantovo/hibernateDemo1/CilDAOBean.java
author František Kučera <franta-hg@frantovo.cz>
Sat Mar 14 22:22:46 2009 +0100 (2009-03-14)
changeset 2 715acc59d67d
parent 1 55b52df32ec2
child 3 769816825525
permissions -rw-r--r--
Správné pojmenování PU (persistentní jednotky)
     1 package cz.frantovo.hibernateDemo1;
     2 
     3 import cz.frantovo.hibernateDemo1.dto.Cil;
     4 import java.util.Collection;
     5 import javax.ejb.Stateless;
     6 import javax.persistence.EntityManager;
     7 import javax.persistence.PersistenceContext;
     8 
     9 /**
    10  *
    11  * @author fiki
    12  */
    13 @Stateless
    14 public class CilDAOBean implements CilDAORemote {
    15     
    16     public static final String PU = "HibernateDemo1-PU";
    17 
    18     @PersistenceContext(unitName = PU)
    19     private EntityManager em;
    20 
    21     public Collection<Cil> getCile() {
    22         throw new UnsupportedOperationException("Not supported yet.");
    23     }
    24 }