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.TCoreDatamapTable;
import org.hibernate.criterion.Criterion;
import org.hibernate.criterion.Restrictions;
import org.springframework.stereotype.Repository;

@Repository
public class TCoreDatamapTableDao extends BaseDao<TCoreDatamapTable, String> {
   public TCoreDatamapTable queryDataMapTable(String datamapid, String tablename) {
      TCoreDatamapTable dataMapTable = (TCoreDatamapTable)this.queryUnique(new Criterion[]{Restrictions.eq("datamapid", datamapid), Restrictions.eq("tablename", tablename)});
      return dataMapTable;
   }
}
