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

@Repository
public class TCoreDatamapUsermapDao extends BaseDao<TCoreDatamapUsermap, String> {
   public TCoreDatamapUsermap queryUnique(String userid, String tableid) {
      TCoreDatamapUsermap userMap = (TCoreDatamapUsermap)this.queryUnique(new Criterion[]{Restrictions.eq("userid", userid), Restrictions.eq("tableid", tableid)});
      return userMap;
   }
}
