Skip to content

MrJavaNoHome/hibernate-orm-entity-graph-eager-fetch-of-lazy-field-bug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

hibernate-orm-entity-graph-eager-fetch-of-lazy-field-bug

https://hibernate.atlassian.net/browse/HHH-14084
When fetching parent entity with child, which both have property with same name generates unexpected behaviour.

For example imagine you have Parent and Child entity. Both of entites have property named toys and marked as lazy. You fetch Parent entities with below graph which fetch child and toys of parent. Side effect of this operation is that toys of child will be eagearly fetched.

@NamedEntityGraph(
      name = "parentWithToysAndChild",
      attributeNodes = {
            @NamedAttributeNode("toys"),
            @NamedAttributeNode("child")
      }
)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages