package bg.car_wash.areas.activity.repository;

import bg.car_wash.areas.activity.entity.Activity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface ActivityRepository extends JpaRepository<Activity, Long> {
	Activity findByActivityName(String name);
}

@@ -205,16 +205,57 @@
 itory;%0A%0A
+import javax.transaction.Transactional;%0A%0A
 @Reposit
@@ -377,10 +377,98 @@
  name);%0A
+%09Activity findActivityById(Long id);%0A%09@Transactional%0A%09void deleteActivityById(Long id);%0A
 %7D%0A

add method findActivityById(Long id) and deleteActivityById(Long id);