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

2016-06-02 Thread Vladimir Martinek
also use on our project). Thank you Vladimir Martinek Example: Have 5 entities - Start, Via1, Via2, Mid and Finish with following relations (all LAZY): Start n:1 Via1 n:1 Mid n:1 Finish Start n:1 Via2 n:1 Mid n:1 Finish Now, trying to use Fetch Profiles to load Start entity and all of its

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

2016-06-07 Thread Vladimir Martinek
f getting the fetch profile > information to SessionImpl.internalLoad()? > > Also, a colleague of mine attempted to implement FetchType.SELECT > fetch > strategy and ended up with precisely the same problem. I believe > solving > my issue would pave way

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

2016-06-07 Thread Vladimir Martinek
the relation > is fetched immediately, but as "subsequent select". A join-fetch is > still EAGER, but now the relation is fetch via join in the initial > query. Very different behavior. > > On Tue, Jun 7, 2016 at 4:38 AM Vladimir Martinek <mailto:v...@sykor

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

2016-06-08 Thread Vladimir Martinek
e, any select-fetched > relations would be loaded individually by separate select (that's kind > of the definition of N+1). > > > > On Tue, Jun 7, 2016 at 8:50 AM Vladimir Martinek <mailto:v...@sykora.cz>> wrote: > > Hello, > > actually I wo

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

2016-06-08 Thread Vladimir Martinek
u for all your effort. Vladimir On 8.6.2016 16:08, Steve Ebersole wrote: > Will do. Was hoping to discuss. But if I have to dig through your > test instead I certainly will, as soon as I get time. > > On Wed, Jun 8, 2016 at 2:29 AM Vladimir Martinek <mailto:v.