public void insertNews(News news) {
   try {
     newsMapper.insert(news);
     session.commit();
   } catch (Exception ignore) {
     logger.error(news.toString());
   }
 }
 public List<News> findMetaForIndex(int offsetId, int limit) {
   return newsMapper.findMetaForIndex(offsetId, limit);
 }
 /**
  * 给建立索引用
  *
  * @return
  */
 public List<News> findAllMeta() {
   return newsMapper.findAllMeta();
 }
 public void truncate() {
   logger.info("begin to truncate newsmodel");
   newsMapper.truncate();
 }