@Test
  @Rollback(true)
  public void updateMasProvince() {

    MasProvince masProvince =
        (MasProvince) masProvinceRepository.getCurrentSession().get(MasProvince.class, id);
    // System.out.println("id: "+masProvince.getId());
    masProvince.setName("changmai");
    masProvinceRepository.update(masProvince);
  }
  @Before
  public void setProvince() {
    MasProvince masProvince = new MasProvince();
    masProvince.setName("Bangkok");
    masProvince.setCode("PRO-01");
    masProvince.setIsActive(true);
    masProvince.setAuditFlag("C");
    masProvince.setCreatedBy(1);
    masProvince.setCreatedTimeStamp(Calendar.getInstance().getTime());
    masProvinceRepository.create(masProvince);

    id = masProvince.getId();
  }
  @Test
  @Rollback(true)
  public void createMasProvince() {
    MasProvince masProvince = new MasProvince();
    masProvince.setName("Bangkok");
    masProvince.setCode("PRO-01");
    masProvince.setIsActive(true);
    masProvince.setAuditFlag("C");
    masProvince.setCreatedBy(1);
    masProvince.setCreatedTimeStamp(Calendar.getInstance().getTime());
    masProvinceRepository.create(masProvince);

    MasProvince masProvince1 = new MasProvince();
    masProvince1.setName("trad");
    masProvince1.setCode("PRO-02");
    masProvince1.setIsActive(true);
    masProvince1.setAuditFlag("C");
    masProvince1.setCreatedBy(1);
    masProvince1.setCreatedTimeStamp(Calendar.getInstance().getTime());
    masProvinceRepository.create(masProvince1);
  }