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

import com.chenyang.nse.bussiness.dao.BaseDao;
import com.chenyang.nse.bussiness.entity.orm.table.core.TCoreSubsetcolumns;
import com.chenyang.nse.bussiness.tools.xml.XmlTool;
import java.util.List;
import org.hibernate.transform.Transformers;
import org.springframework.stereotype.Repository;

@Repository
public class TCoreSubsetcolumnsDao extends BaseDao<TCoreSubsetcolumns, String> {
   public List<TCoreSubsetcolumns> querySubsetColumns(String subsetid) {
      String sql = XmlTool.getSql("subsetcolumns", "querySubsetColumns");
      return this.getSession().createNativeQuery(sql).setParameter("SUBSETID", subsetid).setResultTransformer(Transformers.aliasToBean(TCoreSubsetcolumns.class)).getResultList();
   }
}
