Package com.avaje.tests.basic

Source Code of com.avaje.tests.basic.TestBatchLazyMany

package com.avaje.tests.basic;

import org.junit.Test;

import com.avaje.ebean.BaseTestCase;
import com.avaje.ebean.Ebean;
import com.avaje.tests.model.basic.Order;
import com.avaje.tests.model.basic.ResetBasicData;

public class TestBatchLazyMany extends BaseTestCase {

  @Test
  public void testMe() {
   
    ResetBasicData.reset();
 
    Order order2 = Ebean.getReference(Order.class, 1);
    order2.getOrderDate();
    System.out.println("done");
   
//    List<Order> list = Ebean.find(Order.class)
//      //.join("details")
//      //.join("details", "+fetchquery")
//      .findList();
//   
//    Order order = list.get(0);
//    //List<OrderDetail> details = order.getDetails();
//    //details.size();
//   
//    Customer customer = order.getCustomer();
//    customer.getName();
//    System.out.println("done");
   
  }
 
 
}
TOP

Related Classes of com.avaje.tests.basic.TestBatchLazyMany

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.