SHARE
TWEET

Untitled

a guest Apr 24th, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. import entidades.Clientes;
  3. import org.springframework.beans.factory.annotation.Autowired;
  4. import org.springframework.stereotype.Component;
  5. import org.springframework.stereotype.Service;
  6. import repositories.ClientesRepository;
  7.  
  8. import java.util.List;
  9.  
  10. @Service
  11. public  class ClientesService {
  12.  
  13.     @Autowired
  14.     ClientesRepository clientesRepository;
  15.  
  16.     @Autowired
  17.     public ClientesService(ClientesRepository clientesRepository){
  18.         this.clientesRepository = clientesRepository;
  19.     }
  20.  
  21.     public List<Clientes> getClientes() {
  22.         List<Clientes> listaClientes = clientesRepository.findAll();
  23.          return listaClientes;
  24.     }
  25. }
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