i found the third SQL is identical with the second one, which is weird. Could you double check whether two identical SQLs were generated? Actually, the entity graph implementation has a well-known bug before (see https://docs.jboss.org/hibernate/orm/5.3/userguide/html_single/Hibernate_User_Guide.html#fetching-strategies-dynamic-fetching-entity-graph for instance). As you can see, the second SQL corresponds to the entity graph attribute of dList`, so it seems to correct the previous bug. However, not sure why the third SQL is duplicated. |