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

import com.chenyang.nse.bussiness.dao.BaseDao;
import com.chenyang.nse.bussiness.entity.orm.table.core.TCoreSubset;
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 TCoreSubsetDao extends BaseDao<TCoreSubset, String> {
   public List<TCoreSubset> queryAllSubset() {
      String sql = XmlTool.getSql("subset", "queryAllSubset");
      return this.getSession().createNativeQuery(sql).setResultTransformer(Transformers.aliasToBean(TCoreSubset.class)).getResultList();
   }
}
