package bg.car_wash.areas.car.repository;

import bg.car_wash.areas.car.entity.Car;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface CarRepository extends JpaRepository<Car, Long> {

	Car findByCarRegistrationNumber(String registrationNUmber);

	void deleteCarById(Long id);
}

@@ -278,16 +278,19 @@
 Car find
+Car
 ByCarReg
@@ -363,11 +363,39 @@
 ong id);
+%0A%0A%09Car findCarById(Long id);
 %0A%7D%0A

create method findCarById();