示例#1
0
文件: test.java 项目: fastcnt/mybatis
 @Test
 public void test2() {
   TeaInfoExample ex = new TeaInfoExample();
   TeaInfoExample.Criteria tc = ex.createCriteria();
   tc.andTeaIdEqualTo("001");
   List<TeaInfo> tea = tea_dao.selectByExample(ex);
   for (TeaInfo t : tea) {
     System.out.println(t.getTeaName());
   }
 }
示例#2
0
文件: test.java 项目: fastcnt/mybatis
  @Test
  public void test1() {
    TeaInfo tea = new TeaInfo();

    tea.setTeaId("004");

    tea.setTeaName("王老师");

    tea_dao.insert(tea);

    // Assert.assertTrue(i==1);
  }