package se.kits.gakusei.content.repository;

import org.springframework.data.repository.CrudRepository;
import se.kits.gakusei.content.model.QuizNugget;

import java.util.List;

public interface QuizNuggetRepository extends CrudRepository<QuizNugget, Long> {

    List<QuizNugget> findByQuizId(Long id);
}

@@ -97,16 +97,81 @@
 sitory;%0A
+import org.springframework.transaction.annotation.Transactional;%0A
 import s
@@ -361,11 +361,65 @@
 ong id);
+%0A%0A    @Transactional%0A    void deleteByQuizId(Long id);
 %0A%7D%0A

delete by quiz id query