Setting lazy load to false doesn't change anything.
The queries look like the following: NHibernate: select a0_.a_id as a1_16_0_, b 1_.b_id as b1_8_1_, a0_.a_id as a2_16_0_, ~~~some properties here~~~ from tbl_A a0_ inner join tbl_B b1_ on a0_.a_id=b1_.b_id where b1_.date between @p0 and @p1;@p0 = 15.08.2009 00:00:00, @p1 = 21.08.2009 00:00:00
NHibernate.SQL: 2009-09-18 09:58:40,359 DEBUG - select a0_.a_id as a1_16_0_, b1_.b_id as b1_8_1_, a0_.b_id as b2_16_0_, ~~~some properties here~~~ from tbl_A a0_ inner join tbl_B b1_ on a0_.b_id=b1_.b_id where b1_.date between @p0 and @p1;@p0 = 15.08.2009 00:00:00, @p1 = 21.08.2009 00:00:00
The following set of queries is repeated for each returned object:
NHibernate.SQL: 2009-09-18 09:58:40,375 DEBUG - SELECT ~~~some properties here~~~ FROM tbl_C c0_ inner join tbl_B b1_ on b0_.b_id=b1_.b_id left outer join tbl_A a2_ on b1_.b_id=a2_.b_id WHERE b0_.b_id=@p0;@p0 = 277952
NHibernate: SELECT b0_.c_id as c1_9_2_, b0_.b_id as b2_9_2_, ~~~some properties here~~~ FROM tbl_C b0_ inner join tbl_B b1_ on b0_.b_id=b1_.b_id left outer join tbl_opt_A
NHibernate.SQL: 2009-09-18 09:58:40,578 DEBUG - SELECT a0_.a_id as a1_16_2_, a0_.a_id as b2_16_2_, ~~~some properties here~~~ FROM tbl_A a0_ inner join tbl_B b1_ on a0_.b_id=b1_.b_id left outer join tbl_C b2_ on b1_.b_id=b2_.b_id WHERE a0_.b_id=@p0;@p0 = 277952
NHibernate: SELECT a0_.a_id as a1_16_2_, a0_.b_id as b2_16_2_, ~~~some properties here~~~ FROM tbl_A a0_ inner join tbl_B b1_ on a0_.b_id=b1_.b_id left outer join tbl_C b2_ on b1_.b_id=b2_.b_id WHERE a0_.b_id=@p0;@p0 = 277952
|