@Test public void testGetLazy() throws Exception { int n = 5; long id = ejb.create(n); A a = ejb.getLazy(id); assertNotNull(a); try { a.getList().size(); fail(); } catch (Exception e) { } }
public A getLazy(long id){ return em.find(A.class, id); }
Ejb { public A getLazy(long id){ return em.find(A.class, id); } }
Ejb { public A getLazy(long id){ return em.find(A.class, id); }  }
Ejb { public A getLazy(long id){ return em.find(A.class, id); }  Long create(int n); A getLazy(long id); A getInitialized(long id); A getWrongInitialized(long id); A getInitializedWithHibernate(long id); }
Ejb { public A getLazy(long id){ return em.find(A.class, id); }  Long create(int n); A getLazy(long id); A getInitialized(long id); A getWrongInitialized(long id); A getInitializedWithHibernate(long id);  }