Package com.github.dactiv.orm.test.entity

Examples of com.github.dactiv.orm.test.entity.Menu


 
  @Test
  public void doTest() {
    dao.deleteAll(Lists.newArrayList("SJDK3849CKMS3849DJCK2039ZMSK0012","SJDK3849CKMS3849DJCK2039ZMSK0013","SJDK3849CKMS3849DJCK2039ZMSK0014"));
    sessionFactory.getCurrentSession().flush();
    Menu parent = dao.get("SJDK3849CKMS3849DJCK2039ZMSK0011");
    Assert.assertFalse(parent.getLeaf());
   
    Menu menu = new Menu();
    menu.setParent(parent);
    menu.setName("test_l");
    menu.setType(1);
    dao.save(menu);
    sessionFactory.getCurrentSession().flush();
   
    parent = dao.get("SJDK3849CKMS3849DJCK2039ZMSK0011");
    Assert.assertTrue(parent.getLeaf());
View Full Code Here

TOP

Related Classes of com.github.dactiv.orm.test.entity.Menu

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.