@Test public void testAudioInfoAndGroupDAOMySQL() { AudioInfoDAO aid = new AudioInfoDAO(); AudioGroupInfo agi = new AudioGroupInfo(); AudioInfo ai = new AudioInfo(); agi.setCreateTime(new Date()); agi.setTitleName("TestTitleName"); agi.setTitleRid("testTitleRid1"); ai.setAudioGroupInfo(agi); ai.setCreateTime(new Date()); ai.setDescription("xxxxxxxxxxxxxxx"); ai.setInputPath("inputPath"); ai.setMessageType("messageType"); ai.setName("name"); ai.setRid("rid0"); ai.setS3StoragePath("s3StoragePath"); ai.setVideoDuration(10); ai.setType("type"); ai.setAccessNum(0); aid.save(ai); // AudioGroupInfoDAO agid = new AudioGroupInfoDAO(); // agid.save(agi); }
@Test public void test() { AudioInfoDAO aid = new AudioInfoDAO(); List<AudioInfo> lists = aid.find(0, 5); for (AudioInfo aif : lists) { System.out.println(aif.getRid() + " " + aif.getInputPath()); } }