20212223242526272829303132333435363738394041424344454647
GlobalProperties.put("ebean.search.packages", "com.avaje.tests.model.carwheel"); Car car = new Car(); Tire t1 = new Tire(); Wheel w1 = new Wheel(); w1.setCar(car); w1.setTire(t1); Tire t2 = new Tire(); Wheel w2 = new Wheel(); w2.setCar(car); w2.setTire(t2); Tire t3 = new Tire(); Wheel w3 = new Wheel(); w3.setCar(car); w3.setTire(t3); Tire t4 = new Tire(); Wheel w4 = new Wheel(); w4.setCar(car); w4.setTire(t4); List<Wheel> wheels = new ArrayList<Wheel>(); wheels.add(w1); wheels.add(w2); wheels.add(w3);