In JPA Entity Graphs give the ability to specify fetch plans.
In JPA Entity Graphs give the ability to specify fetch plans.
This is useful since it allows you to customise the data that is retrieved with a query or find operation. When working with mid to large size applications is common to display data from the same entity in different and many ways. In other cases, you just want to select a smallest set of information to optimize the performance of your application.