Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] JoinFetch compatibility with Batch Reading?

Hello Doug,
   Although not clear from the text the restriction is against JPQL queries that select more then one item not the resulting SQL selection.  In  your example you will be able to combine Join Fetch and Batch Reading.
--Gordon

Gschwind, Doug wrote:

Hello everyone,

 

I have only found this one line in the EclipseLink wiki that touches on this topic : “Batching is only allowed on queries that have a single object in their select clause.”, which can be found here. Is it safe to say that this statement is referring to a single object type, i.e. “Batching is only allowed on queries that return zero or more instances of a single object type in their select clause”?

 

If the above is true, and my EclipseLink mapped domain model has a class A that has three mapped relationships, to classes B, C, and D, if one of those relationships is noted to be fetched via a JoinFetch (either in the relationship mapping itself or in the query that returns instances of A), that would then prohibit the ability to use Batch Reading on the other two relationships, regardless of the cardinality from A to B, or A to C, or A to D, when reading instances of class A correct?

 

Thanks,

 

Doug





The contents of this electronic mail message and any attachments are confidential, possibly privileged and intended
for the addressee(s) only. Only the addressee(s) may read, disseminate, retain or otherwise use this message. If
received in error, please immediately inform the sender and then delete this message without disclosing its contents
to anyone.
  

_______________________________________________ eclipselink-users mailing list eclipselink-users@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/eclipselink-users

Back to the top