Package org.nutz.dao.test.meta.issue338

Examples of org.nutz.dao.test.meta.issue338.Ask


   
    @Test
    public void test_deleteWith_many() {
        dao.create(Ask.class, true);
        dao.create(AskReply.class, true);
        Ask ask = new Ask();
        ask.setTemptitle("ABC");
        ask.setTitle("ABC");
       
        List<AskReply> askReplies = new ArrayList<AskReply>();
        askReplies.add(new AskReply(ask.getAskId()));
        askReplies.add(new AskReply(ask.getAskId()));
        ask.setReplys(askReplies);
       
        dao.insertWith(ask, "replys");
       
        ask.setReplys(null);
        dao.deleteWith(ask, "replys");
        assertEquals(2, dao.count(AskReply.class));
       
        ask = dao.fetchLinks(ask, null);
        dao.deleteWith(ask, "replys");
View Full Code Here


        Ask ask = new Ask();
        ask.setTemptitle("ABC");
        ask.setTitle("ABC");
       
        List<AskReply> askReplies = new ArrayList<AskReply>();
        askReplies.add(new AskReply(ask.getAskId()));
        askReplies.add(new AskReply(ask.getAskId()));
        ask.setReplys(askReplies);
       
        dao.insertWith(ask, "replys");
       
        ask.setReplys(null);
View Full Code Here

TOP

Related Classes of org.nutz.dao.test.meta.issue338.Ask

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.