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.
|
|
package com.asset.master;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;import org.springframework.data.jpa.repository.Query;import org.springframework.data.repository.query.Param;import org.springframework.stereotype.Repository;
@Repositorypublic interface MasterQuestionRepository extends JpaRepository<MasterQuestion, Integer> {
@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) List<MasterQuestion> findAllByAssetType(String assetTypeValue);
//@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)
//@Query(value="SELECT masterQuestionId, masterId, masterName, masterQuestionEnglish, masterQuestionTamil, masterQuestionType FROM MasterQuestion WHERE masterQuestionType=?assetTypeValue")
//public List<MasterQuestion> findAllByAssetType(assetTypeValue);
}
|