TODO controller
This commit is contained in:
@@ -1,4 +1,21 @@
|
||||
package sample.data.jpa.service;
|
||||
|
||||
public interface QuestionDao {
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import sample.data.jpa.metier.Question;
|
||||
|
||||
@Transactional
|
||||
public interface QuestionDao extends JpaRepository<Question, Integer> {
|
||||
|
||||
//public Question findById(int id);
|
||||
|
||||
public void deleteReponse(int id);
|
||||
|
||||
public void setChoix(int id);
|
||||
|
||||
public void setReponseCourte(int id);
|
||||
|
||||
public void addChoix(int id, String choix);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user