package bg.car_wash.areas.customer.repository;

import bg.car_wash.areas.customer.entity.Customer;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CustomerRepository extends JpaRepository<Customer, Long> {

	Customer findCustomerByName(String name);
	Customer findCustomerByPhoneNumber(String phone);
}

@@ -318,16 +318,53 @@
 ong%3E %7B%0A%0A
+%09Customer findCustomerById(Long id);%0A
 %09Custome

create findCustomerById(Long id) in repository