Ejemplo n.º 1
0
 @Test
 public void addGroup() {
   Group group = new Group();
   group.setName("abcabc");
   groupJdbcDao.add(group);
   System.out.println(group.getId());
 }
Ejemplo n.º 2
0
 @Test
 public void add() {
   Group group = new Group();
   group.setName("abcabc");
   groupJdbcDao.add(group);
   System.out.println(group.getId());
   User user = new User("zhu", "123", "zhu");
   userJdbcDao.add(user, group.getId());
 }