I'm facing a situation. I've got an entity whith a byte[] mapped by a @Lob in JPA with eclipseLink impelementation. And an oracle database...
My problem is when looping over a collection of entities, the byte[] stay in memory, so while having a lot of entities it's finished by a java heap space...
I've try to isolate my @lob in a sub entities with @Cacheable( false ), and clean entityManager cache. Both didn't work....
I've read here that maybe it should be linked to the implementation of eclipse link but I'm stuck...