package com.chenyang.nse.bussiness.dao.table.core.subset;

import com.chenyang.nse.bussiness.dao.BaseDao;
import com.chenyang.nse.bussiness.entity.orm.table.core.subset.TCoreSubsetInfo;
import com.chenyang.nse.bussiness.entity.vo.ComboboxVO;
import java.util.List;
import org.hibernate.transform.Transformers;
import org.springframework.stereotype.Repository;

@Repository
public class TCoreSubsetInfoDao extends BaseDao<TCoreSubsetInfo, String> {
   public List<ComboboxVO> getSubsetName() {
      String sql = "select id as value,subname as text from t_core_subset_info";
      List<ComboboxVO> vo = this.getSession().createNativeQuery(sql).setResultTransformer(Transformers.ALIAS_TO_ENTITY_MAP).getResultList();
      return vo;
   }
}
