Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-users] Configuring batch reading in JPA?

Hello; I would like to demonstrate to my team how it is easy to set up batch reading for our JPA entities.

I have read http://wiki.eclipse.org/Using_Basic_Query_API_(ELUG)#Using_Batch_Reading, which describes how to do it from a "native" EclipseLink perspective.

I was wondering if there were some sort of annotation or property I could add to my orm.xml file that would instruct EclipseLink to use batch reading for certain eagerly-loaded one-to-many relationships.  I'm thinking of some sort of custom @OneToMany annotation with a batch="true" parameter, or something like it.

Thank you, and my apologies if the answer is right in front of me somewhere.

Best,
Laird

Back to the top