java-tutorials/patterns/dipmodular/com.baeldung.dip.daos/com/baeldung/dip/daos/CustomerDao.java

14 lines
232 B
Java

package com.baeldung.dip.daos;
import com.baeldung.dip.entities.Customer;
import java.util.Map;
import java.util.Optional;
public interface CustomerDao {
Optional<Customer> findById(int id);
List<Customer> findAll();
}