Exemplo n.º 1
0
 @Test
 public void finds() {
   List<Channel> channels =
       (List<Channel>)
           channelService.getScrollData(0, 10, "o.father=?1", new Object[] {new Channel(1)});
   System.out.println();
 }
Exemplo n.º 2
0
 @Test
 public void save() {
   for (int i = 12; i < 21; i++) {
     Channel channel = new Channel();
     channel.setName("栏目" + i);
     channel.setInfo("栏目说明" + i);
     channel.setFather(new Channel(i - 1));
     channel.setRankid(0);
     channelService.save(channel);
   }
 }