Package test.po

Examples of test.po.Master.cascade()


  /**
   * 测试多对多更新
   */
  public static void testManyManyUpdate() {
    Master master = new Master().find().first();
    master.cascade().refresh(999, "pets");
  }

  public static void testManyManySelect() {
    // List<Master> masterList = DAOFactory.getSelectDAO().selectAll(
    // Master.class);
View Full Code Here


    Master master = new Master().findById(1012);
    System.out.println("=============== " + master);
    //master.cascade().merge("pets");
    System.out.println("===after=="+master);
   
    master.cascade().refresh(6, "pets");
   
    //master.setId(1001);
    //master.cascade().persist("pets");
//    Pet pet = new Pet().find().first();
//    pet.setId(0L);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.