daily pastebin goal
3%
SHARE
TWEET

medicoController

a guest Jul 17th, 2018 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2.  * To change this license header, choose License Headers in Project Properties.
  3.  * To change this template file, choose Tools | Templates
  4.  * and open the template in the editor.
  5.  */
  6. package controller;
  7.  
  8. import javax.inject.Named;
  9. import javax.enterprise.context.SessionScoped;
  10. import java.io.Serializable;
  11. import java.util.*;
  12. import javax.ejb.EJB;
  13. import model.MedicoFacade;
  14. import entities.*;
  15. /**
  16.  *
  17.  * @author Fede-Frost
  18.  */
  19. @Named(value = "medicoController")
  20. @SessionScoped
  21. public class MedicoController implements Serializable {
  22.  
  23.     @EJB
  24.     private MedicoFacade medicoFacade;
  25.  
  26.     /**
  27.      * Creates a new instance of medicoController
  28.      */
  29.     public MedicoController() {
  30.     }
  31.    
  32.     public List<Medico> findAll()
  33.     {return this.medicoFacade.findAll();}
  34.    
  35. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top