Advertisement
begergo

Untitled

Oct 19th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.45 KB | None | 0 0
  1.  
  2. package invoices;
  3.  
  4. import javax.persistence.EntityManager;
  5. import javax.persistence.PersistenceContext;
  6.  
  7.  
  8. @javax.ejb.Stateless
  9. public class InvoiceFacade extends AbstractFacade<Invoice> {
  10.  
  11.     @PersistenceContext(unitName = "invoicesTestPU")
  12.     private EntityManager em;
  13.  
  14.     @Override
  15.     protected EntityManager getEntityManager() {
  16.         return em;
  17.     }
  18.  
  19.     public InvoiceFacade() {
  20.         super(Invoice.class);
  21.     }
  22.    
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement