java - Hibernate Lazy Loading Issue -


i mapped entity in hibernate 5

class {     private string code;     private b child;      @lazytoone(lazytooneoption.proxy)     @manytoone(fetch=fetchtype.lazy)     @notfound(action=notfoundaction.ignore)     @joincolumns({...})     public b getchild() { ... } } 

and query load only a is:

from a.code :q 

with configuration hibernate makes select on , on b entities. don't want load b a

what missing?


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

unity3d - Fatal error- Monodevelop-Unity failed to start -