public class TestCKeyLazyLoad extends BaseTestCase {
@Test
public void test() {
CKeyAssoc assoc = new CKeyAssoc();
assoc.setAssocOne("assocOne");
CKeyParentId id = new CKeyParentId(1, "one");
CKeyParent p = new CKeyParent();
p.setId(id);
p.setName("testone");
p.setAssoc(assoc);
p.add(new CKeyDetail("somethine one"));
p.add(new CKeyDetail("somethine two"));
Ebean.save(p);
CKeyAssoc assoc2 = new CKeyAssoc();
assoc2.setAssocOne("assocTwo");
CKeyParentId id2 = new CKeyParentId(2, "two");
CKeyParent p2 = new CKeyParent();
p2.setId(id2);