EntityGraph does not fetch 4-level data after migrating to Hibernate 6

Solution:
set property:
spring.jpa.properties.hibernate.max_fetch_depth

because the default value is 2.