entityManager.persist(advobject);
int id1 = advobject.getId();
entityManager.flush();
CVE cve = advManager.createCVE(overlord, "CAN-2009:1203");
AdvisoryCVE advisory_cve = advManager.createAdvisoryCVE(overlord, advobject, cve);
PageList<AdvisoryCVE> cvelist = advManager.getAdvisoryCVEByAdvId(overlord, id1, PageControl
.getUnlimitedInstance());
assert cvelist != null;