Re: [hibernate-dev] Relations are not loaded when using Fetch Profiles

2016-06-08 Thread Vladimir Martinek
Steve, thank you very much. The test is extremely simple and as a programmer I thought those few lines of code would clear up any confusion. It's perfectly OK to postpone the discussion and I will be very happy to continue once the problem is reproduced and understood. Once again thank you for

Re: [hibernate-dev] Relations are not loaded when using Fetch Profiles

2016-06-08 Thread Vladimir Martinek
MetamodelGraphWalker line 144. My relation is in MetamodelGraphWalker.visitedAssociationKeys, so it gets skipped and thus not make it in the final big SQL SELECT. Why don't you take a look at the test case I provided - just run it and see the LazyInitializationException error, it will all be in

Re: [hibernate-dev] Relations are not loaded when using Fetch Profiles

2016-06-07 Thread Vladimir Martinek
Hello, actually I would like to learn how the FetchMode.JOIN is supposed to work in case of cycles (not really cycles but MetamodelGraphWalker considers them cycles). Check the test case please - it gets LazyInitializationException on a relation despite that relation being marked as JOIN FETCH

Re: [hibernate-dev] Relations are not loaded when using Fetch Profiles

2016-06-07 Thread Steve Ebersole
There is a huge difference in join-fetch and what we detail for "EAGER". Join-fetch is also an eager fetch. There are 2 pieces of information in regards to fetching: when, how? EAGER merely describes when: now. What you describe as "EAGER" is really a N+1 fetch. So the relation is fetched immed

Re: [hibernate-dev] Relations are not loaded when using Fetch Profiles

2016-06-07 Thread Vladimir Martinek
HHH-10745, runnable test case attached to that issue (org.hibernate.test.fetchprofiles.cycle.tar.gz). Thank you Vladimir On 06/07/2016 06:00 AM, Gail Badner wrote: > Please create a Jira issue and attach a runnable test case. > Thanks, > Gail > > On Thu, Jun 2, 2016 at 5:45 AM, Vladimir Marti

Re: [hibernate-dev] Relations are not loaded when using Fetch Profiles

2016-06-06 Thread Gail Badner
Please create a Jira issue and attach a runnable test case. Thanks, Gail On Thu, Jun 2, 2016 at 5:45 AM, Vladimir Martinek wrote: > Fetch profiles fail to load certain relations because of invalid cycle > detection in MetamodelGraphWalker. Below is an example. > > I have compared the behaviour o

[hibernate-dev] Relations are not loaded when using Fetch Profiles

2016-06-02 Thread Vladimir Martinek
Fetch profiles fail to load certain relations because of invalid cycle detection in MetamodelGraphWalker. Below is an example. I have compared the behaviour of Fetch Profiles and standard EAGER relations (EAGER does not suffer from this problem). The MetamodelGraphWalker graph walker produces t