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 findCustomerById(Long id);
	Customer findCustomerByName(String name);
	Customer findCustomerByPhoneNumber(String phone);
}

@@ -201,24 +201,64 @@
 epository;%0A%0A
+import javax.transaction.Transactional;%0A
 import java.
@@ -489,10 +489,61 @@
 phone);%0A
+%09@Transactional%0A%09void deleteCustomerById(Long id);%0A
 %7D%0A

create method deleteCustomerById in repository