예제 #1
0
 @Test
 public void testFindById() {
   YsmsTeam ysmsTeam = teamDao.findById(3);
   System.out.println(ysmsTeam.getTeamName());
 }
예제 #2
0
 @Test
 public void testSave() {
   YsmsTeam ysmsTeam1 = new YsmsTeam();
   ysmsTeam1.setDeleteflag(0);
   ysmsTeam1.setTeamName("中华老字号足球联队专治各种不服");
   ysmsTeam1.setYsmsSchool(schoolDao.findById(1));
   teamDao.save(ysmsTeam1);
   YsmsTeam ysmsTeam2 = new YsmsTeam();
   ysmsTeam2.setDeleteflag(0);
   ysmsTeam2.setTeamName("小日本足球队罹患恐中症三十年");
   ysmsTeam2.setYsmsSchool(schoolDao.findById(2));
   teamDao.save(ysmsTeam2);
   YsmsTeam ysmsTeam3 = new YsmsTeam();
   ysmsTeam3.setDeleteflag(0);
   ysmsTeam3.setTeamName("国安泰达本一家吵吵啥");
   ysmsTeam3.setYsmsSchool(schoolDao.findById(3));
   teamDao.save(ysmsTeam3);
   YsmsTeam ysmsTeam4 = new YsmsTeam();
   ysmsTeam4.setDeleteflag(0);
   ysmsTeam4.setTeamName("少林功夫足球队断子绝孙脚天下无敌");
   ysmsTeam4.setYsmsSchool(schoolDao.findById(4));
   teamDao.save(ysmsTeam4);
 }