Guest User

AnswerRepository.java

a guest
Feb 27th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.29 KB | None | 0 0
  1. package com.example.apidemo.repository;
  2.  
  3. import java.util.List;
  4. import org.springframework.data.jpa.repository.JpaRepository;
  5. import com.example.apidemo.model.Answer;
  6.  
  7. public interface AnswerRepository extends JpaRepository<Answer, Long>{
  8.     List<Answer> findByQuestionId(Long questionId);
  9. }
Advertisement
Add Comment
Please, Sign In to add comment