package kz.cafe.misc;

import kz.cafe.db.*;
import kz.cafe.db.model.*;

public class RubCafeConverter{

   /**
    * @param args
    */
   public static void main(String[] args){
      for(MCafe mCafe : MongoService.getList(MCafe.class)){
         mCafe.timeCloseMo = mCafe.timeClose;
         mCafe.timeOpenMo = mCafe.timeOpen;
         mCafe.timeCloseTu = mCafe.timeClose;
         mCafe.timeOpenTu = mCafe.timeOpen;
         mCafe.timeCloseWe = mCafe.timeClose;
         mCafe.timeOpenWe = mCafe.timeOpen;
         mCafe.timeCloseTh = mCafe.timeClose;
         mCafe.timeOpenTh = mCafe.timeOpen;
         mCafe.timeCloseFr = mCafe.timeClose;
         mCafe.timeOpenFr = mCafe.timeOpen;
         mCafe.timeCloseSa = mCafe.timeCloseWeekend;
         mCafe.timeOpenSa = mCafe.timeOpenWeekend;
         mCafe.timeCloseSu = mCafe.timeCloseWeekend;
         mCafe.timeOpenSu = mCafe.timeOpenWeekend;
         
         MongoService.save(mCafe);
      }
   }
}
