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.
23 lines
752 B
23 lines
752 B
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<Master, Integer> {
|
|
|
|
/*
|
|
* @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<Master> findAllMasterDetail();
|
|
*/
|
|
/*public List findAllMasterDetail();*/
|
|
|
|
@Query(value="SELECT master_id, master_name FROM asset_master", nativeQuery=true)
|
|
public List<Master> findAllMasterName();
|
|
}
|
|
|