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.stereotype.Repository; @Repository public interface MasterRepository extends JpaRepository { /* * @Query( * value="SELECT a.masterId, a.masterName, b.masterCharacteristic, b.masterQuestionType, \r\n" * +"b.masterQuestion FROM Master a INNER JOIN MasterDetail b ON a.masterId=b.masterId" * ,nativeQuery = false) public List findAllMasterDetail(); */ /*public List findAllMasterDetail();*/ @Query(value="SELECT master_id, master_name FROM asset_master", nativeQuery=true) public List findAllMasterName(); }