LexarG56

Generation

generate functionWed, 19 Jul 2023

Como crear un metodo para consultar en una tabla de una base de datos

public List<Customer> getCustomer(){ List<Customer> customers = new ArrayList<>(); customers.add(new Customer(id, name, surname)) return customers } public Customer findById(id){ return customerRepository.findById(id); }

Questions about programming?Chat with your personal AI assistant