1920212223242526272829303132
@Test public void testInsertCarTwice() { List<Wheel> wheels = new LinkedList<Wheel>(); wheels.add(new Wheel()); wheels.add(new Wheel()); wheels.add(new Wheel()); wheels.add(new Wheel()); Car c = new Car(); c.setWheels(wheels); Ebean.save(c); // NOTE 1ST SAVE