Batch Fetch is not working in EclipseLink
问题 Consider this simple association: @Entity public class Employee { @OneToMany(fetch=FetchType.LAZY) private Set<Address> addresses; } Using this code the addresses are not fetched in the result: Query query=entityManager.createQuery("select e from Employee e"); query.setHint("eclipselink.batch.type", "JOIN"); query.setHint("eclipselink.batch", "e.addresses"); List list=query.getResultList(); While in this one the addresses are fetched: Query query=entityManager.createQuery("select e from