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

import com.chenyang.nse.bussiness.dao.BaseDao;
import com.chenyang.nse.bussiness.entity.orm.table.core.masking.TCoreMaskingHive;
import com.chenyang.nse.bussiness.entity.vo.maskingtask.TCoreMaskingHivecolumnVO;
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 TCoreMaskingHiveDao extends BaseDao<TCoreMaskingHive, String> {
   public List<TCoreMaskingHivecolumnVO> queryMaskingHivecolumnVO(String tableid) {
      String sql = XmlTool.getSql("maskingtask", "queryMaskingHivecolumnVO");
      List<TCoreMaskingHivecolumnVO> list = this.getSession().createNativeQuery(sql).setParameter("tableid", tableid).setResultTransformer(Transformers.aliasToBean(TCoreMaskingHivecolumnVO.class)).getResultList();
      return list;
   }
}
