You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
1.1 KiB

4 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. package com.asset.master;
  2. import java.util.List;
  3. import org.springframework.data.jpa.repository.JpaRepository;
  4. import org.springframework.data.jpa.repository.Query;
  5. import org.springframework.data.repository.query.Param;
  6. import org.springframework.stereotype.Repository;
  7. @Repository
  8. public interface MasterQuestionRepository extends JpaRepository<MasterQuestion, Integer> {
  9. @Query(value="SELECT master_question_id, master_id, master_name, master_question_english, master_question_tamil, master_question_type FROM asset_master_question WHERE master_name='Park'", nativeQuery=true)
  10. List<MasterQuestion> findAllByAssetType(String assetTypeValue);
  11. //@Query(value="SELECT master_question_id, master_id, master_name, master_question_english, master_question_tamil, master_question_type FROM asset_master_question WHERE master_name=?1", nativeQuery=true)
  12. //@Query(value="SELECT masterQuestionId, masterId, masterName, masterQuestionEnglish, masterQuestionTamil, masterQuestionType FROM MasterQuestion WHERE masterQuestionType=?assetTypeValue")
  13. //public List<MasterQuestion> findAllByAssetType(assetTypeValue);
  14. }