Closed samakovuluk closed 11 months ago
Due to clean-up action. All issues created before 2022 get closed.
Additional remake: @Fetch is a Hibernate specific annotation. As the JPA Processor is independent from the JPA implementation, such annotations get ignored. The JPA Processor generates its own queries mainly to avoid the n + 1 select problem, but also because the requirements could be fulfilled otherwise.
I have two entity A and B, which B is attributes of A(one-to-many). And in entity A I put pagination with size 50. Problem is that the hibernate is fetching all data, actually, it must fetch those collections which is related to entity A. Here the code and hibernate request.
Correct Hibernate request must be like this.