Advertisement
begergo

Untitled

Oct 19th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.54 KB | None | 0 0
  1. package control;
  2.  
  3. import invoices.Invoice;
  4. import invoices.InvoiceFacade;
  5. import java.util.List;
  6. import javax.annotation.PostConstruct;
  7. import javax.ejb.EJB;
  8. import javax.faces.bean.ManagedBean;
  9. import javax.faces.bean.SessionScoped;
  10. import javax.faces.bean.ViewScoped;
  11.  
  12. @ManagedBean
  13. @ViewScoped
  14.  
  15. public class Control {
  16.    
  17.     @EJB
  18.     private  InvoiceFacade invoiceFacade;
  19.    
  20.     private String hello = "hello";
  21.    
  22.  
  23.     public String test (){
  24.         return invoiceFacade.findAll().get(0).getCustomerName();
  25.     }
  26.    
  27.  
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement