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

import com.chenyang.nse.bussiness.dao.BaseDao;
import com.chenyang.nse.bussiness.entity.orm.table.core.datamap.TCoreDatamapTablealias;
import org.hibernate.criterion.Criterion;
import org.hibernate.criterion.Restrictions;
import org.springframework.stereotype.Repository;

@Repository
public class TCoreDatamapTablealiasDao extends BaseDao<TCoreDatamapTablealias, String> {
   public TCoreDatamapTablealias queryDataMapTableAlias(String datasystemid, String schema, String table) {
      TCoreDatamapTablealias alias = (TCoreDatamapTablealias)this.queryUnique(new Criterion[]{Restrictions.eq("datasystemid", datasystemid), Restrictions.eq("dbschema", schema), Restrictions.eq("tablename", table)});
      return alias;
   }
}
