EclipseLink Profiler shows multiple registered object being created <p>In my development environment when i run a ReadAllQuery using a simple get all JQPL query, i noticed after using the EL profiler that there several read object queries that get executed each adding time to my total time. For example, running a query like this returns the following eclipse profile output.</p> <pre><code>@SuppressWarnings("unchecked") public List&lt;Person&gt; getAllPeople(){ EntityManager entityManager = factory.createEntityManager(); List&lt;Person&gt; people = null; try { people = entityManager.createQuery("Select p from Person p where p.active = true").getResultList(); } catch (Exception e) { // TODO: handle exception } finally{ entityManager.close(); if (entityManager.isOpen()) { } } </code></pre> <p>Returns multiple <code>Register the existing object</code> statements and looking at the log output each is being done in a unit of work, why and how can i prevent these?</p> <pre><code>[EL Finest]: connection: 2012-07-16 20:21:26.558--ServerSession(1144634498)--Connection(1713234840)--Thread(Thread["http-bio-8080"-exec-14,5,main])--Connection released to connection pool [read]. Profile(ReadAllQuery, class=org.bixin.dugsi.domain.ApplicantSchool, number of objects=2, total time=3494000, local time=3494000, profiling time=84000, Timer:Logging=412000, Timer:ObjectBuilding=1670000, Timer:SqlPrepare=24000, Timer:ConnectionManagement=215000, Timer:StatementExecute=455000, Timer:Caching=68000, Timer:DescriptorEvents=9000, Timer:RowFetch=97000, time/object=1747000, ) }End profile Register the existing object Address[id=5,persons={[Applicant[major=Bachelors in Islamic Studies,nativeLanguage=&lt;null&gt;,ethnicity=&lt;null&gt;,hispanic=&lt;null&gt;,religiousAffiliation=&lt;null&gt;,schools={[ApplicantSchool[id=8,name=John Hopkisn,fromMonth=May,fromYear=2013,toMonth=March,toYear=2011,schoolType=Highschool,creditsCompleted=unavailable,gpa=unavailable,applicant=&lt;null&gt;,version=1,_persistence_applicant_vh={QueryBasedValueHolder: not instantiated},_persistence_fetchGroup=&lt;null&gt;], ApplicantSchool[id=7,name=,fromMonth=&lt;null&gt;,fromYear=&lt;null&gt;,toMonth=&lt;null&gt;,toYear=&lt;null&gt;,schoolType=College,creditsCompleted=,gpa=,applicant=&lt;null&gt;,version=1,_persistence_applicant_vh={QueryBasedValueHolder: not instantiated},_persistence_fetchGroup=&lt;null&gt;]]},FirstName=warsame,MiddleName=a,LastName=bashir,primaryTelephone=2342342333,secondaryTelephone=,emailAddress=warsme@d.com,birthDay=Sun Jul 22 00:00:00 CDT 2012,gender=Male,DateAdded=Fri Jul 13 18:16:33 CDT 2012,address=&lt;null&gt;,imagePath=&lt;null&gt;,active=true,marital=Single,school=&lt;null&gt;,nativeLanguage=Arabic,ethnicity=[Asian],hispanic=No,religiousAffiliation=Islam,id=651,version=1,_persistence_school_vh={null},_persistence_address_vh={Address[id=5,persons=org.eclipse.persistence.indirection.IndirectSet@47f322c8,streetAddress=243 city join,streetAddress2=&lt;null&gt;,city=saudi,state_us=South Carolina (SC),zipCode=24234,country=Antarctica,version=1,_persistence_fetchGroup=&lt;null&gt;]},_persistence_fetchGroup=&lt;null&gt;]]},streetAddress=243 city join,streetAddress2=&lt;null&gt;,city=saudi,state_us=South Carolina (SC),zipCode=24234,country=Antarctica,version=1,_persistence_fetchGroup=&lt;null&gt;] Profile( total time=5000, local time=5000, Timer:DescriptorEvents=5000, ) Profile( total time=196000, local time=196000, Timer:Register=196000, ) [EL Finest]: transaction: 2012-07-16 20:21:26.564--UnitOfWork(26103836)--Thread(Thread["http-bio-8080"-exec-14,5,main])--Register the existing object Applicant[major=Bachelors in Islamic Studies,nativeLanguage=&lt;null&gt;,ethnicity=&lt;null&gt;,hispanic=&lt;null&gt;,religiousAffiliation=&lt;null&gt;,schools={[ApplicantSchool[id=8,name=John Hopkisn,fromMonth=May,fromYear=2013,toMonth=March,toYear=2011,schoolType=Highschool,creditsCompleted=unavailable,gpa=unavailable,applicant=&lt;null&gt;,version=1,_persistence_applicant_vh={QueryBasedValueHolder: not instantiated},_persistence_fetchGroup=&lt;null&gt;], ApplicantSchool[id=7,name=,fromMonth=&lt;null&gt;,fromYear=&lt;null&gt;,toMonth=&lt;null&gt;,toYear=&lt;null&gt;,schoolType=College,creditsCompleted=,gpa=,applicant=&lt;null&gt;,version=1,_persistence_applicant_vh={QueryBasedValueHolder: not instantiated},_persistence_fetchGroup=&lt;null&gt;]]},FirstName=warsame,MiddleName=a,LastName=bashir,primaryTelephone=2342342333,secondaryTelephone=,emailAddress=warsme@d.com,birthDay=Sun Jul 22 00:00:00 CDT 2012,gender=Male,DateAdded=Fri Jul 13 18:16:33 CDT 2012,address=&lt;null&gt;,imagePath=&lt;null&gt;,active=true,marital=Single,school=&lt;null&gt;,nativeLanguage=Arabic,ethnicity=[Asian],hispanic=No,religiousAffiliation=Islam,id=651,version=1,_persistence_school_vh={null},_persistence_address_vh={Address[id=5,persons={[Applicant[major=Bachelors in Islamic Studies,nativeLanguage=&lt;null&gt;,ethnicity=&lt;null&gt;,hispanic=&lt;null&gt;,religiousAffiliation=&lt;null&gt;,schools={[ApplicantSchool[id=8,name=John Hopkisn,fromMonth=May,fromYear=2013,toMonth=March,toYear=2011,schoolType=Highschool,creditsCompleted=unavailable,gpa=unavailable,applicant=&lt;null&gt;,version=1,_persistence_applicant_vh={QueryBasedValueHolder: not instantiated},_persistence_fetchGroup=&lt;null&gt;], ApplicantSchool[id=7,name=,fromMonth=&lt;null&gt;,fromYear=&lt;null&gt;,toMonth=&lt;null&gt;,toYear=&lt;null&gt;,schoolType=College,creditsCompleted=,gpa=,applicant=&lt;null&gt;,version=1,_persistence_applicant_vh={QueryBasedValueHolder: not instantiated},_persistence_fetchGroup=&lt;null&gt;]]},FirstName=warsame,MiddleName=a,LastName=bashir,primaryTelephone=2342342333,secondaryTelephone=,emailAddress=warsme@d.com,birthDay=Sun Jul 22 00:00:00 CDT 2012,gender=Male,DateAdded=Fri Jul 13 18:16:33 CDT 2012,address=&lt;null&gt;,imagePath=&lt;null&gt;,active=true,marital=Single,school=&lt;null&gt;,nativeLanguage=Arabic,ethnicity=[Asian],hispanic=No,religiousAffiliation=Islam,id=651,version=1,_persistence_school_vh={null},_persistence_address_vh=org.eclipse.persistence.internal.indirection.QueryBasedValueHolder@6b8099d3,_persistence_fetchGroup=&lt;null&gt;]]},streetAddress=243 city join,streetAddress2=&lt;null&gt;,city=saudi,state_us=South Carolina (SC),zipCode=24234,country=Antarctica,version=1,_persistence_fetchGroup=&lt;null&gt;]},_persistence_fetchGroup=&lt;null&gt;] Profile( total time=1349000, local time=1349000, Timer:Logging=1349000, ) </code></pre>