Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ######### ################################################################################
- ######### TEST 100 no graph no fetch printAll
- ######### ################################################################################
- ######### final CriteriaQuery<TestEntity> query = builder.createQuery(TestEntity.class);
- ######### final Root<TestEntity> root = query.from(TestEntity.class);
- ######### final Path<Long> id = root.get("id");
- ######### query.where(builder.equal(id, 100L));
- ######### final TypedQuery<TestEntity> tq = session.createQuery(query);
- ######### final TestEntity test = tq.getSingleResult();
- Hibernate:
- select
- testentity0_.id as id1_28_,
- testentity0_.link_id as link_id4_28_,
- testentity0_.linkJoin_id as linkjoin5_28_,
- testentity0_.linkLazy_id as linklazy6_28_,
- testentity0_.linkLazyJoin_id as linklazy7_28_,
- testentity0_.linkLazyNoProxyJoin_id as linklazy9_28_,
- testentity0_.linkLazySelect_id as linklaz11_28_,
- testentity0_.linkNoProxyJoin_id as linknop13_28_,
- testentity0_.linkSelect_id as linksel15_28_,
- testentity0_.name as name2_28_,
- testentity0_.version as version3_28_
- from
- loading_test testentity0_
- where
- testentity0_.id=100
- Hibernate:
- select
- testentity0_.id as id1_28_0_,
- testentity0_.link_id as link_id4_28_0_,
- testentity0_.linkJoin_id as linkjoin5_28_0_,
- testentity0_.linkLazy_id as linklazy6_28_0_,
- testentity0_.linkLazyJoin_id as linklazy7_28_0_,
- testentity0_.linkLazyNoProxyJoin_id as linklazy9_28_0_,
- testentity0_.linkLazySelect_id as linklaz11_28_0_,
- testentity0_.linkNoProxyJoin_id as linknop13_28_0_,
- testentity0_.linkSelect_id as linksel15_28_0_,
- testentity0_.name as name2_28_0_,
- testentity0_.version as version3_28_0_,
- testentity1_.id as id1_28_1_,
- testentity1_.link_id as link_id4_28_1_,
- testentity1_.linkJoin_id as linkjoin5_28_1_,
- testentity1_.linkLazy_id as linklazy6_28_1_,
- testentity1_.linkLazyJoin_id as linklazy7_28_1_,
- testentity1_.linkLazyNoProxyJoin_id as linklazy9_28_1_,
- testentity1_.linkLazySelect_id as linklaz11_28_1_,
- testentity1_.linkNoProxyJoin_id as linknop13_28_1_,
- testentity1_.linkSelect_id as linksel15_28_1_,
- testentity1_.name as name2_28_1_,
- testentity1_.version as version3_28_1_,
- testentity2_.id as id1_28_2_,
- testentity2_.link_id as link_id4_28_2_,
- testentity2_.linkJoin_id as linkjoin5_28_2_,
- testentity2_.linkLazy_id as linklazy6_28_2_,
- testentity2_.linkLazyJoin_id as linklazy7_28_2_,
- testentity2_.linkLazyNoProxyJoin_id as linklazy9_28_2_,
- testentity2_.linkLazySelect_id as linklaz11_28_2_,
- testentity2_.linkNoProxyJoin_id as linknop13_28_2_,
- testentity2_.linkSelect_id as linksel15_28_2_,
- testentity2_.name as name2_28_2_,
- testentity2_.version as version3_28_2_,
- testentity3_.id as id1_28_3_,
- testentity3_.link_id as link_id4_28_3_,
- testentity3_.linkJoin_id as linkjoin5_28_3_,
- testentity3_.linkLazy_id as linklazy6_28_3_,
- testentity3_.linkLazyJoin_id as linklazy7_28_3_,
- testentity3_.linkLazyNoProxyJoin_id as linklazy9_28_3_,
- testentity3_.linkLazySelect_id as linklaz11_28_3_,
- testentity3_.linkNoProxyJoin_id as linknop13_28_3_,
- testentity3_.linkSelect_id as linksel15_28_3_,
- testentity3_.name as name2_28_3_,
- testentity3_.version as version3_28_3_,
- testentity4_.id as id1_28_4_,
- testentity4_.link_id as link_id4_28_4_,
- testentity4_.linkJoin_id as linkjoin5_28_4_,
- testentity4_.linkLazy_id as linklazy6_28_4_,
- testentity4_.linkLazyJoin_id as linklazy7_28_4_,
- testentity4_.linkLazyNoProxyJoin_id as linklazy9_28_4_,
- testentity4_.linkLazySelect_id as linklaz11_28_4_,
- testentity4_.linkNoProxyJoin_id as linknop13_28_4_,
- testentity4_.linkSelect_id as linksel15_28_4_,
- testentity4_.name as name2_28_4_,
- testentity4_.version as version3_28_4_,
- testentity5_.id as id1_28_5_,
- testentity5_.link_id as link_id4_28_5_,
- testentity5_.linkJoin_id as linkjoin5_28_5_,
- testentity5_.linkLazy_id as linklazy6_28_5_,
- testentity5_.linkLazyJoin_id as linklazy7_28_5_,
- testentity5_.linkLazyNoProxyJoin_id as linklazy9_28_5_,
- testentity5_.linkLazySelect_id as linklaz11_28_5_,
- testentity5_.linkNoProxyJoin_id as linknop13_28_5_,
- testentity5_.linkSelect_id as linksel15_28_5_,
- testentity5_.name as name2_28_5_,
- testentity5_.version as version3_28_5_,
- testentity6_.id as id1_28_6_,
- testentity6_.link_id as link_id4_28_6_,
- testentity6_.linkJoin_id as linkjoin5_28_6_,
- testentity6_.linkLazy_id as linklazy6_28_6_,
- testentity6_.linkLazyJoin_id as linklazy7_28_6_,
- testentity6_.linkLazyNoProxyJoin_id as linklazy9_28_6_,
- testentity6_.linkLazySelect_id as linklaz11_28_6_,
- testentity6_.linkNoProxyJoin_id as linknop13_28_6_,
- testentity6_.linkSelect_id as linksel15_28_6_,
- testentity6_.name as name2_28_6_,
- testentity6_.version as version3_28_6_
- from
- loading_test testentity0_
- left outer join
- loading_test testentity1_
- on testentity0_.link_id=testentity1_.id
- left outer join
- loading_test testentity2_
- on testentity1_.linkJoin_id=testentity2_.id
- left outer join
- loading_test testentity3_
- on testentity2_.linkLazyJoin_id=testentity3_.id
- left outer join
- loading_test testentity4_
- on testentity3_.linkLazyNoProxyJoin_id=testentity4_.id
- left outer join
- loading_test testentity5_
- on testentity4_.linkNoProxy_id=testentity5_.id
- left outer join
- loading_test testentity6_
- on testentity5_.linkNoProxyJoin_id=testentity6_.id
- where
- testentity0_.id in (
- ?, ?, ?, ?, ?, ?, ?, ?
- )
- ######### test.reportInitializationState();
- ######### ================================================================================
- ######### #100:no-graph Initialization State
- ######### --------------------------------------------------------------------------------
- ######### link: YES 1/1
- ######### linkJoin: YES 1/1
- ######### linkLazy: YES 1/1
- ######### linkLazyJoin: YES 1/1
- ######### linkLazyNoProxy: n/a 0/1
- ######### linkLazyNoProxyJoin: YES 1/1
- ######### linkLazyNoProxySelect: n/a 0/1
- ######### linkLazySelect: YES 1/1
- ######### linkNoProxy: n/a 0/1
- ######### linkNoProxyJoin: YES 1/1
- ######### linkNoProxySelect: n/a 0/1
- ######### linkSelect: YES 1/1
- ######### --------------------------------------------------------------------------------
- ######### #100:no-graph Reflection State
- ######### --------------------------------------------------------------------------------
- ######### link: HERE 1/1
- ######### linkJoin: HERE 1/1
- ######### linkLazy: HERE 1/1
- ######### linkLazyJoin: HERE 1/1
- ######### linkLazyNoProxy: null 0/1
- ######### linkLazyNoProxyJoin: HERE 1/1
- ######### linkLazyNoProxySelect: null 0/1
- ######### linkLazySelect: HERE 1/1
- ######### linkNoProxy: null 0/1
- ######### linkNoProxyJoin: HERE 1/1
- ######### linkNoProxySelect: null 0/1
- ######### linkSelect: HERE 1/1
- ######### ================================================================================
- ######### test.printAll();
- ######### ================================================================================
- ######### #100:no-graph
- ######### --------------------------------------------------------------------------------
- ######### link = #1:link
- ######### linkSelect = #2:linkSelect
- ######### linkJoin = #3:linkJoin
- Hibernate:
- select
- testentity_.linkLazyNoProxy_id as linklazy8_28_,
- testentity_.linkLazyNoProxySelect_id as linklaz10_28_,
- testentity_.linkNoProxy_id as linknop12_28_,
- testentity_.linkNoProxySelect_id as linknop14_28_
- from
- loading_test testentity_
- where
- testentity_.id=?
- Hibernate:
- select
- testentity0_.id as id1_28_0_,
- testentity0_.link_id as link_id4_28_0_,
- testentity0_.linkJoin_id as linkjoin5_28_0_,
- testentity0_.linkLazy_id as linklazy6_28_0_,
- testentity0_.linkLazyJoin_id as linklazy7_28_0_,
- testentity0_.linkLazyNoProxyJoin_id as linklazy9_28_0_,
- testentity0_.linkLazySelect_id as linklaz11_28_0_,
- testentity0_.linkNoProxyJoin_id as linknop13_28_0_,
- testentity0_.linkSelect_id as linksel15_28_0_,
- testentity0_.name as name2_28_0_,
- testentity0_.version as version3_28_0_,
- testentity1_.id as id1_28_1_,
- testentity1_.link_id as link_id4_28_1_,
- testentity1_.linkJoin_id as linkjoin5_28_1_,
- testentity1_.linkLazy_id as linklazy6_28_1_,
- testentity1_.linkLazyJoin_id as linklazy7_28_1_,
- testentity1_.linkLazyNoProxyJoin_id as linklazy9_28_1_,
- testentity1_.linkLazySelect_id as linklaz11_28_1_,
- testentity1_.linkNoProxyJoin_id as linknop13_28_1_,
- testentity1_.linkSelect_id as linksel15_28_1_,
- testentity1_.name as name2_28_1_,
- testentity1_.version as version3_28_1_,
- testentity2_.id as id1_28_2_,
- testentity2_.link_id as link_id4_28_2_,
- testentity2_.linkJoin_id as linkjoin5_28_2_,
- testentity2_.linkLazy_id as linklazy6_28_2_,
- testentity2_.linkLazyJoin_id as linklazy7_28_2_,
- testentity2_.linkLazyNoProxyJoin_id as linklazy9_28_2_,
- testentity2_.linkLazySelect_id as linklaz11_28_2_,
- testentity2_.linkNoProxyJoin_id as linknop13_28_2_,
- testentity2_.linkSelect_id as linksel15_28_2_,
- testentity2_.name as name2_28_2_,
- testentity2_.version as version3_28_2_,
- testentity3_.id as id1_28_3_,
- testentity3_.link_id as link_id4_28_3_,
- testentity3_.linkJoin_id as linkjoin5_28_3_,
- testentity3_.linkLazy_id as linklazy6_28_3_,
- testentity3_.linkLazyJoin_id as linklazy7_28_3_,
- testentity3_.linkLazyNoProxyJoin_id as linklazy9_28_3_,
- testentity3_.linkLazySelect_id as linklaz11_28_3_,
- testentity3_.linkNoProxyJoin_id as linknop13_28_3_,
- testentity3_.linkSelect_id as linksel15_28_3_,
- testentity3_.name as name2_28_3_,
- testentity3_.version as version3_28_3_,
- testentity4_.id as id1_28_4_,
- testentity4_.link_id as link_id4_28_4_,
- testentity4_.linkJoin_id as linkjoin5_28_4_,
- testentity4_.linkLazy_id as linklazy6_28_4_,
- testentity4_.linkLazyJoin_id as linklazy7_28_4_,
- testentity4_.linkLazyNoProxyJoin_id as linklazy9_28_4_,
- testentity4_.linkLazySelect_id as linklaz11_28_4_,
- testentity4_.linkNoProxyJoin_id as linknop13_28_4_,
- testentity4_.linkSelect_id as linksel15_28_4_,
- testentity4_.name as name2_28_4_,
- testentity4_.version as version3_28_4_,
- testentity5_.id as id1_28_5_,
- testentity5_.link_id as link_id4_28_5_,
- testentity5_.linkJoin_id as linkjoin5_28_5_,
- testentity5_.linkLazy_id as linklazy6_28_5_,
- testentity5_.linkLazyJoin_id as linklazy7_28_5_,
- testentity5_.linkLazyNoProxyJoin_id as linklazy9_28_5_,
- testentity5_.linkLazySelect_id as linklaz11_28_5_,
- testentity5_.linkNoProxyJoin_id as linknop13_28_5_,
- testentity5_.linkSelect_id as linksel15_28_5_,
- testentity5_.name as name2_28_5_,
- testentity5_.version as version3_28_5_,
- testentity6_.id as id1_28_6_,
- testentity6_.link_id as link_id4_28_6_,
- testentity6_.linkJoin_id as linkjoin5_28_6_,
- testentity6_.linkLazy_id as linklazy6_28_6_,
- testentity6_.linkLazyJoin_id as linklazy7_28_6_,
- testentity6_.linkLazyNoProxyJoin_id as linklazy9_28_6_,
- testentity6_.linkLazySelect_id as linklaz11_28_6_,
- testentity6_.linkNoProxyJoin_id as linknop13_28_6_,
- testentity6_.linkSelect_id as linksel15_28_6_,
- testentity6_.name as name2_28_6_,
- testentity6_.version as version3_28_6_
- from
- loading_test testentity0_
- left outer join
- loading_test testentity1_
- on testentity0_.link_id=testentity1_.id
- left outer join
- loading_test testentity2_
- on testentity1_.linkJoin_id=testentity2_.id
- left outer join
- loading_test testentity3_
- on testentity2_.linkLazyJoin_id=testentity3_.id
- left outer join
- loading_test testentity4_
- on testentity3_.linkLazyNoProxyJoin_id=testentity4_.id
- left outer join
- loading_test testentity5_
- on testentity4_.linkNoProxy_id=testentity5_.id
- left outer join
- loading_test testentity6_
- on testentity5_.linkNoProxyJoin_id=testentity6_.id
- where
- testentity0_.id=?
- Hibernate:
- select
- testentity0_.id as id1_28_0_,
- testentity0_.link_id as link_id4_28_0_,
- testentity0_.linkJoin_id as linkjoin5_28_0_,
- testentity0_.linkLazy_id as linklazy6_28_0_,
- testentity0_.linkLazyJoin_id as linklazy7_28_0_,
- testentity0_.linkLazyNoProxyJoin_id as linklazy9_28_0_,
- testentity0_.linkLazySelect_id as linklaz11_28_0_,
- testentity0_.linkNoProxyJoin_id as linknop13_28_0_,
- testentity0_.linkSelect_id as linksel15_28_0_,
- testentity0_.name as name2_28_0_,
- testentity0_.version as version3_28_0_,
- testentity1_.id as id1_28_1_,
- testentity1_.link_id as link_id4_28_1_,
- testentity1_.linkJoin_id as linkjoin5_28_1_,
- testentity1_.linkLazy_id as linklazy6_28_1_,
- testentity1_.linkLazyJoin_id as linklazy7_28_1_,
- testentity1_.linkLazyNoProxyJoin_id as linklazy9_28_1_,
- testentity1_.linkLazySelect_id as linklaz11_28_1_,
- testentity1_.linkNoProxyJoin_id as linknop13_28_1_,
- testentity1_.linkSelect_id as linksel15_28_1_,
- testentity1_.name as name2_28_1_,
- testentity1_.version as version3_28_1_,
- testentity2_.id as id1_28_2_,
- testentity2_.link_id as link_id4_28_2_,
- testentity2_.linkJoin_id as linkjoin5_28_2_,
- testentity2_.linkLazy_id as linklazy6_28_2_,
- testentity2_.linkLazyJoin_id as linklazy7_28_2_,
- testentity2_.linkLazyNoProxyJoin_id as linklazy9_28_2_,
- testentity2_.linkLazySelect_id as linklaz11_28_2_,
- testentity2_.linkNoProxyJoin_id as linknop13_28_2_,
- testentity2_.linkSelect_id as linksel15_28_2_,
- testentity2_.name as name2_28_2_,
- testentity2_.version as version3_28_2_,
- testentity3_.id as id1_28_3_,
- testentity3_.link_id as link_id4_28_3_,
- testentity3_.linkJoin_id as linkjoin5_28_3_,
- testentity3_.linkLazy_id as linklazy6_28_3_,
- testentity3_.linkLazyJoin_id as linklazy7_28_3_,
- testentity3_.linkLazyNoProxyJoin_id as linklazy9_28_3_,
- testentity3_.linkLazySelect_id as linklaz11_28_3_,
- testentity3_.linkNoProxyJoin_id as linknop13_28_3_,
- testentity3_.linkSelect_id as linksel15_28_3_,
- testentity3_.name as name2_28_3_,
- testentity3_.version as version3_28_3_,
- testentity4_.id as id1_28_4_,
- testentity4_.link_id as link_id4_28_4_,
- testentity4_.linkJoin_id as linkjoin5_28_4_,
- testentity4_.linkLazy_id as linklazy6_28_4_,
- testentity4_.linkLazyJoin_id as linklazy7_28_4_,
- testentity4_.linkLazyNoProxyJoin_id as linklazy9_28_4_,
- testentity4_.linkLazySelect_id as linklaz11_28_4_,
- testentity4_.linkNoProxyJoin_id as linknop13_28_4_,
- testentity4_.linkSelect_id as linksel15_28_4_,
- testentity4_.name as name2_28_4_,
- testentity4_.version as version3_28_4_,
- testentity5_.id as id1_28_5_,
- testentity5_.link_id as link_id4_28_5_,
- testentity5_.linkJoin_id as linkjoin5_28_5_,
- testentity5_.linkLazy_id as linklazy6_28_5_,
- testentity5_.linkLazyJoin_id as linklazy7_28_5_,
- testentity5_.linkLazyNoProxyJoin_id as linklazy9_28_5_,
- testentity5_.linkLazySelect_id as linklaz11_28_5_,
- testentity5_.linkNoProxyJoin_id as linknop13_28_5_,
- testentity5_.linkSelect_id as linksel15_28_5_,
- testentity5_.name as name2_28_5_,
- testentity5_.version as version3_28_5_,
- testentity6_.id as id1_28_6_,
- testentity6_.link_id as link_id4_28_6_,
- testentity6_.linkJoin_id as linkjoin5_28_6_,
- testentity6_.linkLazy_id as linklazy6_28_6_,
- testentity6_.linkLazyJoin_id as linklazy7_28_6_,
- testentity6_.linkLazyNoProxyJoin_id as linklazy9_28_6_,
- testentity6_.linkLazySelect_id as linklaz11_28_6_,
- testentity6_.linkNoProxyJoin_id as linknop13_28_6_,
- testentity6_.linkSelect_id as linksel15_28_6_,
- testentity6_.name as name2_28_6_,
- testentity6_.version as version3_28_6_
- from
- loading_test testentity0_
- left outer join
- loading_test testentity1_
- on testentity0_.link_id=testentity1_.id
- left outer join
- loading_test testentity2_
- on testentity1_.linkJoin_id=testentity2_.id
- left outer join
- loading_test testentity3_
- on testentity2_.linkLazyJoin_id=testentity3_.id
- left outer join
- loading_test testentity4_
- on testentity3_.linkLazyNoProxyJoin_id=testentity4_.id
- left outer join
- loading_test testentity5_
- on testentity4_.linkNoProxy_id=testentity5_.id
- left outer join
- loading_test testentity6_
- on testentity5_.linkNoProxyJoin_id=testentity6_.id
- where
- testentity0_.id=?
- Hibernate:
- select
- testentity0_.id as id1_28_0_,
- testentity0_.link_id as link_id4_28_0_,
- testentity0_.linkJoin_id as linkjoin5_28_0_,
- testentity0_.linkLazy_id as linklazy6_28_0_,
- testentity0_.linkLazyJoin_id as linklazy7_28_0_,
- testentity0_.linkLazyNoProxyJoin_id as linklazy9_28_0_,
- testentity0_.linkLazySelect_id as linklaz11_28_0_,
- testentity0_.linkNoProxyJoin_id as linknop13_28_0_,
- testentity0_.linkSelect_id as linksel15_28_0_,
- testentity0_.name as name2_28_0_,
- testentity0_.version as version3_28_0_,
- testentity1_.id as id1_28_1_,
- testentity1_.link_id as link_id4_28_1_,
- testentity1_.linkJoin_id as linkjoin5_28_1_,
- testentity1_.linkLazy_id as linklazy6_28_1_,
- testentity1_.linkLazyJoin_id as linklazy7_28_1_,
- testentity1_.linkLazyNoProxyJoin_id as linklazy9_28_1_,
- testentity1_.linkLazySelect_id as linklaz11_28_1_,
- testentity1_.linkNoProxyJoin_id as linknop13_28_1_,
- testentity1_.linkSelect_id as linksel15_28_1_,
- testentity1_.name as name2_28_1_,
- testentity1_.version as version3_28_1_,
- testentity2_.id as id1_28_2_,
- testentity2_.link_id as link_id4_28_2_,
- testentity2_.linkJoin_id as linkjoin5_28_2_,
- testentity2_.linkLazy_id as linklazy6_28_2_,
- testentity2_.linkLazyJoin_id as linklazy7_28_2_,
- testentity2_.linkLazyNoProxyJoin_id as linklazy9_28_2_,
- testentity2_.linkLazySelect_id as linklaz11_28_2_,
- testentity2_.linkNoProxyJoin_id as linknop13_28_2_,
- testentity2_.linkSelect_id as linksel15_28_2_,
- testentity2_.name as name2_28_2_,
- testentity2_.version as version3_28_2_,
- testentity3_.id as id1_28_3_,
- testentity3_.link_id as link_id4_28_3_,
- testentity3_.linkJoin_id as linkjoin5_28_3_,
- testentity3_.linkLazy_id as linklazy6_28_3_,
- testentity3_.linkLazyJoin_id as linklazy7_28_3_,
- testentity3_.linkLazyNoProxyJoin_id as linklazy9_28_3_,
- testentity3_.linkLazySelect_id as linklaz11_28_3_,
- testentity3_.linkNoProxyJoin_id as linknop13_28_3_,
- testentity3_.linkSelect_id as linksel15_28_3_,
- testentity3_.name as name2_28_3_,
- testentity3_.version as version3_28_3_,
- testentity4_.id as id1_28_4_,
- testentity4_.link_id as link_id4_28_4_,
- testentity4_.linkJoin_id as linkjoin5_28_4_,
- testentity4_.linkLazy_id as linklazy6_28_4_,
- testentity4_.linkLazyJoin_id as linklazy7_28_4_,
- testentity4_.linkLazyNoProxyJoin_id as linklazy9_28_4_,
- testentity4_.linkLazySelect_id as linklaz11_28_4_,
- testentity4_.linkNoProxyJoin_id as linknop13_28_4_,
- testentity4_.linkSelect_id as linksel15_28_4_,
- testentity4_.name as name2_28_4_,
- testentity4_.version as version3_28_4_,
- testentity5_.id as id1_28_5_,
- testentity5_.link_id as link_id4_28_5_,
- testentity5_.linkJoin_id as linkjoin5_28_5_,
- testentity5_.linkLazy_id as linklazy6_28_5_,
- testentity5_.linkLazyJoin_id as linklazy7_28_5_,
- testentity5_.linkLazyNoProxyJoin_id as linklazy9_28_5_,
- testentity5_.linkLazySelect_id as linklaz11_28_5_,
- testentity5_.linkNoProxyJoin_id as linknop13_28_5_,
- testentity5_.linkSelect_id as linksel15_28_5_,
- testentity5_.name as name2_28_5_,
- testentity5_.version as version3_28_5_,
- testentity6_.id as id1_28_6_,
- testentity6_.link_id as link_id4_28_6_,
- testentity6_.linkJoin_id as linkjoin5_28_6_,
- testentity6_.linkLazy_id as linklazy6_28_6_,
- testentity6_.linkLazyJoin_id as linklazy7_28_6_,
- testentity6_.linkLazyNoProxyJoin_id as linklazy9_28_6_,
- testentity6_.linkLazySelect_id as linklaz11_28_6_,
- testentity6_.linkNoProxyJoin_id as linknop13_28_6_,
- testentity6_.linkSelect_id as linksel15_28_6_,
- testentity6_.name as name2_28_6_,
- testentity6_.version as version3_28_6_
- from
- loading_test testentity0_
- left outer join
- loading_test testentity1_
- on testentity0_.link_id=testentity1_.id
- left outer join
- loading_test testentity2_
- on testentity1_.linkJoin_id=testentity2_.id
- left outer join
- loading_test testentity3_
- on testentity2_.linkLazyJoin_id=testentity3_.id
- left outer join
- loading_test testentity4_
- on testentity3_.linkLazyNoProxyJoin_id=testentity4_.id
- left outer join
- loading_test testentity5_
- on testentity4_.linkNoProxy_id=testentity5_.id
- left outer join
- loading_test testentity6_
- on testentity5_.linkNoProxyJoin_id=testentity6_.id
- where
- testentity0_.id=?
- ######### linkNoProxy = #5:linkNoProxy
- ######### linkNoProxySelect = #6:linkNoProxySelect
- ######### linkNoProxyJoin = #7:linkNoProxyJoin
- ######### linkLazy = #9:linkLazy
- ######### linkLazySelect = #10:linkLazySelect
- ######### linkLazyJoin = #11:linkLazyJoin
- ######### linkLazyNoProxy = #13:linkLazyNoProxy
- ######### linkLazyNoProxySelect = #14:linkLazyNoProxySelect
- ######### linkLazyNoProxyJoin = #15:linkLazyNoProxyJoin
- ######### ================================================================================
- ######### ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ######### ################################################################################
- ######### TEST 101 graph=1/javax.persistence.fetchgraph no fetch printAll
- ######### ################################################################################
- ######### final CriteriaQuery<TestEntity> query = builder.createQuery(TestEntity.class);
- ######### final Root<TestEntity> root = query.from(TestEntity.class);
- ######### final Path<Long> id = root.get("id");
- ######### query.where(builder.equal(id, 101L));
- ######### final TypedQuery<TestEntity> tq = session.createQuery(query);
- ######### final String graphText = "link, linkSelect, linkJoin, linkNoProxy, linkNoProxySelect, linkNoProxyJoin, linkLazy, linkLazySelect, linkLazyJoin, linkLazyNoProxy, linkLazyNoProxySelect, linkLazyNoProxyJoin";
- ######### final RootGraph<TestEntity> entityGraph = GraphParser.parse(TestEntity.class, graphText, session.getEntityManager());
- ######### tq.setHint("javax.persistence.fetchgraph", entityGraph);
- ######### final TestEntity test = tq.getSingleResult();
- Hibernate:
- select
- testentity0_.id as id1_28_0_,
- testentity1_.id as id1_28_1_,
- testentity2_.id as id1_28_2_,
- testentity3_.id as id1_28_3_,
- testentity4_.id as id1_28_4_,
- testentity5_.id as id1_28_5_,
- testentity6_.id as id1_28_6_,
- testentity7_.id as id1_28_7_,
- testentity8_.id as id1_28_8_,
- testentity9_.id as id1_28_9_,
- testentity10_.id as id1_28_10_,
- testentity11_.id as id1_28_11_,
- testentity12_.id as id1_28_12_,
- testentity0_.link_id as link_id4_28_0_,
- testentity0_.linkJoin_id as linkjoin5_28_0_,
- testentity0_.linkLazy_id as linklazy6_28_0_,
- testentity0_.linkLazyJoin_id as linklazy7_28_0_,
- testentity0_.linkLazyNoProxyJoin_id as linklazy9_28_0_,
- testentity0_.linkLazySelect_id as linklaz11_28_0_,
- testentity0_.linkNoProxyJoin_id as linknop13_28_0_,
- testentity0_.linkSelect_id as linksel15_28_0_,
- testentity0_.name as name2_28_0_,
- testentity0_.version as version3_28_0_,
- testentity1_.link_id as link_id4_28_1_,
- testentity1_.linkJoin_id as linkjoin5_28_1_,
- testentity1_.linkLazy_id as linklazy6_28_1_,
- testentity1_.linkLazyJoin_id as linklazy7_28_1_,
- testentity1_.linkLazyNoProxyJoin_id as linklazy9_28_1_,
- testentity1_.linkLazySelect_id as linklaz11_28_1_,
- testentity1_.linkNoProxyJoin_id as linknop13_28_1_,
- testentity1_.linkSelect_id as linksel15_28_1_,
- testentity1_.name as name2_28_1_,
- testentity1_.version as version3_28_1_,
- testentity2_.link_id as link_id4_28_2_,
- testentity2_.linkJoin_id as linkjoin5_28_2_,
- testentity2_.linkLazy_id as linklazy6_28_2_,
- testentity2_.linkLazyJoin_id as linklazy7_28_2_,
- testentity2_.linkLazyNoProxyJoin_id as linklazy9_28_2_,
- testentity2_.linkLazySelect_id as linklaz11_28_2_,
- testentity2_.linkNoProxyJoin_id as linknop13_28_2_,
- testentity2_.linkSelect_id as linksel15_28_2_,
- testentity2_.name as name2_28_2_,
- testentity2_.version as version3_28_2_,
- testentity3_.link_id as link_id4_28_3_,
- testentity3_.linkJoin_id as linkjoin5_28_3_,
- testentity3_.linkLazy_id as linklazy6_28_3_,
- testentity3_.linkLazyJoin_id as linklazy7_28_3_,
- testentity3_.linkLazyNoProxyJoin_id as linklazy9_28_3_,
- testentity3_.linkLazySelect_id as linklaz11_28_3_,
- testentity3_.linkNoProxyJoin_id as linknop13_28_3_,
- testentity3_.linkSelect_id as linksel15_28_3_,
- testentity3_.name as name2_28_3_,
- testentity3_.version as version3_28_3_,
- testentity4_.link_id as link_id4_28_4_,
- testentity4_.linkJoin_id as linkjoin5_28_4_,
- testentity4_.linkLazy_id as linklazy6_28_4_,
- testentity4_.linkLazyJoin_id as linklazy7_28_4_,
- testentity4_.linkLazyNoProxyJoin_id as linklazy9_28_4_,
- testentity4_.linkLazySelect_id as linklaz11_28_4_,
- testentity4_.linkNoProxyJoin_id as linknop13_28_4_,
- testentity4_.linkSelect_id as linksel15_28_4_,
- testentity4_.name as name2_28_4_,
- testentity4_.version as version3_28_4_,
- testentity5_.link_id as link_id4_28_5_,
- testentity5_.linkJoin_id as linkjoin5_28_5_,
- testentity5_.linkLazy_id as linklazy6_28_5_,
- testentity5_.linkLazyJoin_id as linklazy7_28_5_,
- testentity5_.linkLazyNoProxyJoin_id as linklazy9_28_5_,
- testentity5_.linkLazySelect_id as linklaz11_28_5_,
- testentity5_.linkNoProxyJoin_id as linknop13_28_5_,
- testentity5_.linkSelect_id as linksel15_28_5_,
- testentity5_.name as name2_28_5_,
- testentity5_.version as version3_28_5_,
- testentity6_.link_id as link_id4_28_6_,
- testentity6_.linkJoin_id as linkjoin5_28_6_,
- testentity6_.linkLazy_id as linklazy6_28_6_,
- testentity6_.linkLazyJoin_id as linklazy7_28_6_,
- testentity6_.linkLazyNoProxyJoin_id as linklazy9_28_6_,
- testentity6_.linkLazySelect_id as linklaz11_28_6_,
- testentity6_.linkNoProxyJoin_id as linknop13_28_6_,
- testentity6_.linkSelect_id as linksel15_28_6_,
- testentity6_.name as name2_28_6_,
- testentity6_.version as version3_28_6_,
- testentity7_.link_id as link_id4_28_7_,
- testentity7_.linkJoin_id as linkjoin5_28_7_,
- testentity7_.linkLazy_id as linklazy6_28_7_,
- testentity7_.linkLazyJoin_id as linklazy7_28_7_,
- testentity7_.linkLazyNoProxyJoin_id as linklazy9_28_7_,
- testentity7_.linkLazySelect_id as linklaz11_28_7_,
- testentity7_.linkNoProxyJoin_id as linknop13_28_7_,
- testentity7_.linkSelect_id as linksel15_28_7_,
- testentity7_.name as name2_28_7_,
- testentity7_.version as version3_28_7_,
- testentity8_.link_id as link_id4_28_8_,
- testentity8_.linkJoin_id as linkjoin5_28_8_,
- testentity8_.linkLazy_id as linklazy6_28_8_,
- testentity8_.linkLazyJoin_id as linklazy7_28_8_,
- testentity8_.linkLazyNoProxyJoin_id as linklazy9_28_8_,
- testentity8_.linkLazySelect_id as linklaz11_28_8_,
- testentity8_.linkNoProxyJoin_id as linknop13_28_8_,
- testentity8_.linkSelect_id as linksel15_28_8_,
- testentity8_.name as name2_28_8_,
- testentity8_.version as version3_28_8_,
- testentity9_.link_id as link_id4_28_9_,
- testentity9_.linkJoin_id as linkjoin5_28_9_,
- testentity9_.linkLazy_id as linklazy6_28_9_,
- testentity9_.linkLazyJoin_id as linklazy7_28_9_,
- testentity9_.linkLazyNoProxyJoin_id as linklazy9_28_9_,
- testentity9_.linkLazySelect_id as linklaz11_28_9_,
- testentity9_.linkNoProxyJoin_id as linknop13_28_9_,
- testentity9_.linkSelect_id as linksel15_28_9_,
- testentity9_.name as name2_28_9_,
- testentity9_.version as version3_28_9_,
- testentity10_.link_id as link_id4_28_10_,
- testentity10_.linkJoin_id as linkjoin5_28_10_,
- testentity10_.linkLazy_id as linklazy6_28_10_,
- testentity10_.linkLazyJoin_id as linklazy7_28_10_,
- testentity10_.linkLazyNoProxyJoin_id as linklazy9_28_10_,
- testentity10_.linkLazySelect_id as linklaz11_28_10_,
- testentity10_.linkNoProxyJoin_id as linknop13_28_10_,
- testentity10_.linkSelect_id as linksel15_28_10_,
- testentity10_.name as name2_28_10_,
- testentity10_.version as version3_28_10_,
- testentity11_.link_id as link_id4_28_11_,
- testentity11_.linkJoin_id as linkjoin5_28_11_,
- testentity11_.linkLazy_id as linklazy6_28_11_,
- testentity11_.linkLazyJoin_id as linklazy7_28_11_,
- testentity11_.linkLazyNoProxyJoin_id as linklazy9_28_11_,
- testentity11_.linkLazySelect_id as linklaz11_28_11_,
- testentity11_.linkNoProxyJoin_id as linknop13_28_11_,
- testentity11_.linkSelect_id as linksel15_28_11_,
- testentity11_.name as name2_28_11_,
- testentity11_.version as version3_28_11_,
- testentity12_.link_id as link_id4_28_12_,
- testentity12_.linkJoin_id as linkjoin5_28_12_,
- testentity12_.linkLazy_id as linklazy6_28_12_,
- testentity12_.linkLazyJoin_id as linklazy7_28_12_,
- testentity12_.linkLazyNoProxyJoin_id as linklazy9_28_12_,
- testentity12_.linkLazySelect_id as linklaz11_28_12_,
- testentity12_.linkNoProxyJoin_id as linknop13_28_12_,
- testentity12_.linkSelect_id as linksel15_28_12_,
- testentity12_.name as name2_28_12_,
- testentity12_.version as version3_28_12_
- from
- loading_test testentity0_
- left outer join
- loading_test testentity1_
- on testentity0_.link_id=testentity1_.id
- left outer join
- loading_test testentity2_
- on testentity0_.linkNoProxyJoin_id=testentity2_.id
- left outer join
- loading_test testentity3_
- on testentity0_.linkLazyJoin_id=testentity3_.id
- left outer join
- loading_test testentity4_
- on testentity0_.linkSelect_id=testentity4_.id
- left outer join
- loading_test testentity5_
- on testentity0_.linkLazyNoProxyJoin_id=testentity5_.id
- left outer join
- loading_test testentity6_
- on testentity0_.linkLazyNoProxySelect_id=testentity6_.id
- left outer join
- loading_test testentity7_
- on testentity0_.linkLazySelect_id=testentity7_.id
- left outer join
- loading_test testentity8_
- on testentity0_.linkNoProxy_id=testentity8_.id
- left outer join
- loading_test testentity9_
- on testentity0_.linkLazy_id=testentity9_.id
- left outer join
- loading_test testentity10_
- on testentity0_.linkLazyNoProxy_id=testentity10_.id
- left outer join
- loading_test testentity11_
- on testentity0_.linkJoin_id=testentity11_.id
- left outer join
- loading_test testentity12_
- on testentity0_.linkNoProxySelect_id=testentity12_.id
- where
- testentity0_.id=101
- ######### test.reportInitializationState();
- ######### ================================================================================
- ######### #101:shallow-graph Initialization State
- ######### --------------------------------------------------------------------------------
- ######### link: YES 2/2
- ######### linkJoin: YES 2/2
- ######### linkLazy: YES 2/2
- ######### linkLazyJoin: YES 2/2
- ######### linkLazyNoProxy: n/a 0/2
- ######### linkLazyNoProxyJoin: YES 2/2
- ######### linkLazyNoProxySelect: n/a 0/2
- ######### linkLazySelect: YES 2/2
- ######### linkNoProxy: n/a 0/2
- ######### linkNoProxyJoin: YES 2/2
- ######### linkNoProxySelect: n/a 0/2
- ######### linkSelect: YES 2/2
- ######### --------------------------------------------------------------------------------
- ######### #101:shallow-graph Reflection State
- ######### --------------------------------------------------------------------------------
- ######### link: HERE 2/2
- ######### linkJoin: HERE 2/2
- ######### linkLazy: HERE 2/2
- ######### linkLazyJoin: HERE 2/2
- ######### linkLazyNoProxy: null 0/2
- ######### linkLazyNoProxyJoin: HERE 2/2
- ######### linkLazyNoProxySelect: null 0/2
- ######### linkLazySelect: HERE 2/2
- ######### linkNoProxy: null 0/2
- ######### linkNoProxyJoin: HERE 2/2
- ######### linkNoProxySelect: null 0/2
- ######### linkSelect: HERE 2/2
- ######### ================================================================================
- ######### test.printAll();
- ######### ================================================================================
- ######### #101:shallow-graph
- ######### --------------------------------------------------------------------------------
- ######### link = #1:link
- ######### linkSelect = #2:linkSelect
- ######### linkJoin = #3:linkJoin
- Hibernate:
- select
- testentity_.linkLazyNoProxy_id as linklazy8_28_,
- testentity_.linkLazyNoProxySelect_id as linklaz10_28_,
- testentity_.linkNoProxy_id as linknop12_28_,
- testentity_.linkNoProxySelect_id as linknop14_28_
- from
- loading_test testentity_
- where
- testentity_.id=?
- ######### linkNoProxy = #5:linkNoProxy
- ######### linkNoProxySelect = #6:linkNoProxySelect
- ######### linkNoProxyJoin = #7:linkNoProxyJoin
- ######### linkLazy = #9:linkLazy
- ######### linkLazySelect = #10:linkLazySelect
- ######### linkLazyJoin = #11:linkLazyJoin
- ######### linkLazyNoProxy = #13:linkLazyNoProxy
- ######### linkLazyNoProxySelect = #14:linkLazyNoProxySelect
- ######### linkLazyNoProxyJoin = #15:linkLazyNoProxyJoin
- ######### ================================================================================
- ######### ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ######### ################################################################################
- ######### TEST 102 graph=2/javax.persistence.fetchgraph no fetch printAll
- ######### ################################################################################
- ######### final CriteriaQuery<TestEntity> query = builder.createQuery(TestEntity.class);
- ######### final Root<TestEntity> root = query.from(TestEntity.class);
- ######### final Path<Long> id = root.get("id");
- ######### query.where(builder.equal(id, 102L));
- ######### final TypedQuery<TestEntity> tq = session.createQuery(query);
- ######### final String graphText = "link(id), linkSelect(id), linkJoin(id), linkNoProxy(id), linkNoProxySelect(id), linkNoProxyJoin(id), linkLazy(id), linkLazySelect(id), linkLazyJoin(id), linkLazyNoProxy(id), linkLazyNoProxySelect(id), linkLazyNoProxyJoin(id)";
- ######### final RootGraph<TestEntity> entityGraph = GraphParser.parse(TestEntity.class, graphText, session.getEntityManager());
- ######### tq.setHint("javax.persistence.fetchgraph", entityGraph);
- ######### final TestEntity test = tq.getSingleResult();
- Hibernate:
- select
- testentity0_.id as id1_28_0_,
- testentity1_.id as id1_28_1_,
- testentity2_.id as id1_28_2_,
- testentity3_.id as id1_28_3_,
- testentity4_.id as id1_28_4_,
- testentity5_.id as id1_28_5_,
- testentity6_.id as id1_28_6_,
- testentity7_.id as id1_28_7_,
- testentity8_.id as id1_28_8_,
- testentity9_.id as id1_28_9_,
- testentity10_.id as id1_28_10_,
- testentity11_.id as id1_28_11_,
- testentity12_.id as id1_28_12_,
- testentity0_.link_id as link_id4_28_0_,
- testentity0_.linkJoin_id as linkjoin5_28_0_,
- testentity0_.linkLazy_id as linklazy6_28_0_,
- testentity0_.linkLazyJoin_id as linklazy7_28_0_,
- testentity0_.linkLazyNoProxyJoin_id as linklazy9_28_0_,
- testentity0_.linkLazySelect_id as linklaz11_28_0_,
- testentity0_.linkNoProxyJoin_id as linknop13_28_0_,
- testentity0_.linkSelect_id as linksel15_28_0_,
- testentity0_.name as name2_28_0_,
- testentity0_.version as version3_28_0_,
- testentity1_.link_id as link_id4_28_1_,
- testentity1_.linkJoin_id as linkjoin5_28_1_,
- testentity1_.linkLazy_id as linklazy6_28_1_,
- testentity1_.linkLazyJoin_id as linklazy7_28_1_,
- testentity1_.linkLazyNoProxyJoin_id as linklazy9_28_1_,
- testentity1_.linkLazySelect_id as linklaz11_28_1_,
- testentity1_.linkNoProxyJoin_id as linknop13_28_1_,
- testentity1_.linkSelect_id as linksel15_28_1_,
- testentity1_.name as name2_28_1_,
- testentity1_.version as version3_28_1_,
- testentity2_.link_id as link_id4_28_2_,
- testentity2_.linkJoin_id as linkjoin5_28_2_,
- testentity2_.linkLazy_id as linklazy6_28_2_,
- testentity2_.linkLazyJoin_id as linklazy7_28_2_,
- testentity2_.linkLazyNoProxyJoin_id as linklazy9_28_2_,
- testentity2_.linkLazySelect_id as linklaz11_28_2_,
- testentity2_.linkNoProxyJoin_id as linknop13_28_2_,
- testentity2_.linkSelect_id as linksel15_28_2_,
- testentity2_.name as name2_28_2_,
- testentity2_.version as version3_28_2_,
- testentity3_.link_id as link_id4_28_3_,
- testentity3_.linkJoin_id as linkjoin5_28_3_,
- testentity3_.linkLazy_id as linklazy6_28_3_,
- testentity3_.linkLazyJoin_id as linklazy7_28_3_,
- testentity3_.linkLazyNoProxyJoin_id as linklazy9_28_3_,
- testentity3_.linkLazySelect_id as linklaz11_28_3_,
- testentity3_.linkNoProxyJoin_id as linknop13_28_3_,
- testentity3_.linkSelect_id as linksel15_28_3_,
- testentity3_.name as name2_28_3_,
- testentity3_.version as version3_28_3_,
- testentity4_.link_id as link_id4_28_4_,
- testentity4_.linkJoin_id as linkjoin5_28_4_,
- testentity4_.linkLazy_id as linklazy6_28_4_,
- testentity4_.linkLazyJoin_id as linklazy7_28_4_,
- testentity4_.linkLazyNoProxyJoin_id as linklazy9_28_4_,
- testentity4_.linkLazySelect_id as linklaz11_28_4_,
- testentity4_.linkNoProxyJoin_id as linknop13_28_4_,
- testentity4_.linkSelect_id as linksel15_28_4_,
- testentity4_.name as name2_28_4_,
- testentity4_.version as version3_28_4_,
- testentity5_.link_id as link_id4_28_5_,
- testentity5_.linkJoin_id as linkjoin5_28_5_,
- testentity5_.linkLazy_id as linklazy6_28_5_,
- testentity5_.linkLazyJoin_id as linklazy7_28_5_,
- testentity5_.linkLazyNoProxyJoin_id as linklazy9_28_5_,
- testentity5_.linkLazySelect_id as linklaz11_28_5_,
- testentity5_.linkNoProxyJoin_id as linknop13_28_5_,
- testentity5_.linkSelect_id as linksel15_28_5_,
- testentity5_.name as name2_28_5_,
- testentity5_.version as version3_28_5_,
- testentity6_.link_id as link_id4_28_6_,
- testentity6_.linkJoin_id as linkjoin5_28_6_,
- testentity6_.linkLazy_id as linklazy6_28_6_,
- testentity6_.linkLazyJoin_id as linklazy7_28_6_,
- testentity6_.linkLazyNoProxyJoin_id as linklazy9_28_6_,
- testentity6_.linkLazySelect_id as linklaz11_28_6_,
- testentity6_.linkNoProxyJoin_id as linknop13_28_6_,
- testentity6_.linkSelect_id as linksel15_28_6_,
- testentity6_.name as name2_28_6_,
- testentity6_.version as version3_28_6_,
- testentity7_.link_id as link_id4_28_7_,
- testentity7_.linkJoin_id as linkjoin5_28_7_,
- testentity7_.linkLazy_id as linklazy6_28_7_,
- testentity7_.linkLazyJoin_id as linklazy7_28_7_,
- testentity7_.linkLazyNoProxyJoin_id as linklazy9_28_7_,
- testentity7_.linkLazySelect_id as linklaz11_28_7_,
- testentity7_.linkNoProxyJoin_id as linknop13_28_7_,
- testentity7_.linkSelect_id as linksel15_28_7_,
- testentity7_.name as name2_28_7_,
- testentity7_.version as version3_28_7_,
- testentity8_.link_id as link_id4_28_8_,
- testentity8_.linkJoin_id as linkjoin5_28_8_,
- testentity8_.linkLazy_id as linklazy6_28_8_,
- testentity8_.linkLazyJoin_id as linklazy7_28_8_,
- testentity8_.linkLazyNoProxyJoin_id as linklazy9_28_8_,
- testentity8_.linkLazySelect_id as linklaz11_28_8_,
- testentity8_.linkNoProxyJoin_id as linknop13_28_8_,
- testentity8_.linkSelect_id as linksel15_28_8_,
- testentity8_.name as name2_28_8_,
- testentity8_.version as version3_28_8_,
- testentity9_.link_id as link_id4_28_9_,
- testentity9_.linkJoin_id as linkjoin5_28_9_,
- testentity9_.linkLazy_id as linklazy6_28_9_,
- testentity9_.linkLazyJoin_id as linklazy7_28_9_,
- testentity9_.linkLazyNoProxyJoin_id as linklazy9_28_9_,
- testentity9_.linkLazySelect_id as linklaz11_28_9_,
- testentity9_.linkNoProxyJoin_id as linknop13_28_9_,
- testentity9_.linkSelect_id as linksel15_28_9_,
- testentity9_.name as name2_28_9_,
- testentity9_.version as version3_28_9_,
- testentity10_.link_id as link_id4_28_10_,
- testentity10_.linkJoin_id as linkjoin5_28_10_,
- testentity10_.linkLazy_id as linklazy6_28_10_,
- testentity10_.linkLazyJoin_id as linklazy7_28_10_,
- testentity10_.linkLazyNoProxyJoin_id as linklazy9_28_10_,
- testentity10_.linkLazySelect_id as linklaz11_28_10_,
- testentity10_.linkNoProxyJoin_id as linknop13_28_10_,
- testentity10_.linkSelect_id as linksel15_28_10_,
- testentity10_.name as name2_28_10_,
- testentity10_.version as version3_28_10_,
- testentity11_.link_id as link_id4_28_11_,
- testentity11_.linkJoin_id as linkjoin5_28_11_,
- testentity11_.linkLazy_id as linklazy6_28_11_,
- testentity11_.linkLazyJoin_id as linklazy7_28_11_,
- testentity11_.linkLazyNoProxyJoin_id as linklazy9_28_11_,
- testentity11_.linkLazySelect_id as linklaz11_28_11_,
- testentity11_.linkNoProxyJoin_id as linknop13_28_11_,
- testentity11_.linkSelect_id as linksel15_28_11_,
- testentity11_.name as name2_28_11_,
- testentity11_.version as version3_28_11_,
- testentity12_.link_id as link_id4_28_12_,
- testentity12_.linkJoin_id as linkjoin5_28_12_,
- testentity12_.linkLazy_id as linklazy6_28_12_,
- testentity12_.linkLazyJoin_id as linklazy7_28_12_,
- testentity12_.linkLazyNoProxyJoin_id as linklazy9_28_12_,
- testentity12_.linkLazySelect_id as linklaz11_28_12_,
- testentity12_.linkNoProxyJoin_id as linknop13_28_12_,
- testentity12_.linkSelect_id as linksel15_28_12_,
- testentity12_.name as name2_28_12_,
- testentity12_.version as version3_28_12_
- from
- loading_test testentity0_
- left outer join
- loading_test testentity1_
- on testentity0_.link_id=testentity1_.id
- left outer join
- loading_test testentity2_
- on testentity0_.linkNoProxyJoin_id=testentity2_.id
- left outer join
- loading_test testentity3_
- on testentity0_.linkLazyJoin_id=testentity3_.id
- left outer join
- loading_test testentity4_
- on testentity0_.linkSelect_id=testentity4_.id
- left outer join
- loading_test testentity5_
- on testentity0_.linkLazyNoProxyJoin_id=testentity5_.id
- left outer join
- loading_test testentity6_
- on testentity0_.linkLazyNoProxySelect_id=testentity6_.id
- left outer join
- loading_test testentity7_
- on testentity0_.linkLazySelect_id=testentity7_.id
- left outer join
- loading_test testentity8_
- on testentity0_.linkNoProxy_id=testentity8_.id
- left outer join
- loading_test testentity9_
- on testentity0_.linkLazy_id=testentity9_.id
- left outer join
- loading_test testentity10_
- on testentity0_.linkLazyNoProxy_id=testentity10_.id
- left outer join
- loading_test testentity11_
- on testentity0_.linkJoin_id=testentity11_.id
- left outer join
- loading_test testentity12_
- on testentity0_.linkNoProxySelect_id=testentity12_.id
- where
- testentity0_.id=102
- ######### test.reportInitializationState();
- ######### ================================================================================
- ######### #102:id-graph Initialization State
- ######### --------------------------------------------------------------------------------
- ######### link: YES 3/3
- ######### linkJoin: YES 3/3
- ######### linkLazy: YES 3/3
- ######### linkLazyJoin: YES 3/3
- ######### linkLazyNoProxy: n/a 0/3
- ######### linkLazyNoProxyJoin: YES 3/3
- ######### linkLazyNoProxySelect: n/a 0/3
- ######### linkLazySelect: YES 3/3
- ######### linkNoProxy: n/a 0/3
- ######### linkNoProxyJoin: YES 3/3
- ######### linkNoProxySelect: n/a 0/3
- ######### linkSelect: YES 3/3
- ######### --------------------------------------------------------------------------------
- ######### #102:id-graph Reflection State
- ######### --------------------------------------------------------------------------------
- ######### link: HERE 3/3
- ######### linkJoin: HERE 3/3
- ######### linkLazy: HERE 3/3
- ######### linkLazyJoin: HERE 3/3
- ######### linkLazyNoProxy: null 0/3
- ######### linkLazyNoProxyJoin: HERE 3/3
- ######### linkLazyNoProxySelect: null 0/3
- ######### linkLazySelect: HERE 3/3
- ######### linkNoProxy: null 0/3
- ######### linkNoProxyJoin: HERE 3/3
- ######### linkNoProxySelect: null 0/3
- ######### linkSelect: HERE 3/3
- ######### ================================================================================
- ######### test.printAll();
- ######### ================================================================================
- ######### #102:id-graph
- ######### --------------------------------------------------------------------------------
- ######### link = #1:link
- ######### linkSelect = #2:linkSelect
- ######### linkJoin = #3:linkJoin
- Hibernate:
- select
- testentity_.linkLazyNoProxy_id as linklazy8_28_,
- testentity_.linkLazyNoProxySelect_id as linklaz10_28_,
- testentity_.linkNoProxy_id as linknop12_28_,
- testentity_.linkNoProxySelect_id as linknop14_28_
- from
- loading_test testentity_
- where
- testentity_.id=?
- ######### linkNoProxy = #5:linkNoProxy
- ######### linkNoProxySelect = #6:linkNoProxySelect
- ######### linkNoProxyJoin = #7:linkNoProxyJoin
- ######### linkLazy = #9:linkLazy
- ######### linkLazySelect = #10:linkLazySelect
- ######### linkLazyJoin = #11:linkLazyJoin
- ######### linkLazyNoProxy = #13:linkLazyNoProxy
- ######### linkLazyNoProxySelect = #14:linkLazyNoProxySelect
- ######### linkLazyNoProxyJoin = #15:linkLazyNoProxyJoin
- ######### ================================================================================
- ######### ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ######### ################################################################################
- ######### TEST 103 graph=3/javax.persistence.fetchgraph no fetch printAll
- ######### ################################################################################
- ######### final CriteriaQuery<TestEntity> query = builder.createQuery(TestEntity.class);
- ######### final Root<TestEntity> root = query.from(TestEntity.class);
- ######### final Path<Long> id = root.get("id");
- ######### query.where(builder.equal(id, 103L));
- ######### final TypedQuery<TestEntity> tq = session.createQuery(query);
- ######### final String graphText = "link(id, name), linkSelect(id, name), linkJoin(id, name), linkNoProxy(id, name), linkNoProxySelect(id, name), linkNoProxyJoin(id, name), linkLazy(id, name), linkLazySelect(id, name), linkLazyJoin(id, name), linkLazyNoProxy(id, name), linkLazyNoProxySelect(id, name), linkLazyNoProxyJoin(id, name)";
- ######### final RootGraph<TestEntity> entityGraph = GraphParser.parse(TestEntity.class, graphText, session.getEntityManager());
- ######### tq.setHint("javax.persistence.fetchgraph", entityGraph);
- ######### final TestEntity test = tq.getSingleResult();
- Hibernate:
- select
- testentity0_.id as id1_28_0_,
- testentity1_.id as id1_28_1_,
- testentity2_.id as id1_28_2_,
- testentity3_.id as id1_28_3_,
- testentity4_.id as id1_28_4_,
- testentity5_.id as id1_28_5_,
- testentity6_.id as id1_28_6_,
- testentity7_.id as id1_28_7_,
- testentity8_.id as id1_28_8_,
- testentity9_.id as id1_28_9_,
- testentity10_.id as id1_28_10_,
- testentity11_.id as id1_28_11_,
- testentity12_.id as id1_28_12_,
- testentity0_.link_id as link_id4_28_0_,
- testentity0_.linkJoin_id as linkjoin5_28_0_,
- testentity0_.linkLazy_id as linklazy6_28_0_,
- testentity0_.linkLazyJoin_id as linklazy7_28_0_,
- testentity0_.linkLazyNoProxyJoin_id as linklazy9_28_0_,
- testentity0_.linkLazySelect_id as linklaz11_28_0_,
- testentity0_.linkNoProxyJoin_id as linknop13_28_0_,
- testentity0_.linkSelect_id as linksel15_28_0_,
- testentity0_.name as name2_28_0_,
- testentity0_.version as version3_28_0_,
- testentity1_.link_id as link_id4_28_1_,
- testentity1_.linkJoin_id as linkjoin5_28_1_,
- testentity1_.linkLazy_id as linklazy6_28_1_,
- testentity1_.linkLazyJoin_id as linklazy7_28_1_,
- testentity1_.linkLazyNoProxyJoin_id as linklazy9_28_1_,
- testentity1_.linkLazySelect_id as linklaz11_28_1_,
- testentity1_.linkNoProxyJoin_id as linknop13_28_1_,
- testentity1_.linkSelect_id as linksel15_28_1_,
- testentity1_.name as name2_28_1_,
- testentity1_.version as version3_28_1_,
- testentity2_.link_id as link_id4_28_2_,
- testentity2_.linkJoin_id as linkjoin5_28_2_,
- testentity2_.linkLazy_id as linklazy6_28_2_,
- testentity2_.linkLazyJoin_id as linklazy7_28_2_,
- testentity2_.linkLazyNoProxyJoin_id as linklazy9_28_2_,
- testentity2_.linkLazySelect_id as linklaz11_28_2_,
- testentity2_.linkNoProxyJoin_id as linknop13_28_2_,
- testentity2_.linkSelect_id as linksel15_28_2_,
- testentity2_.name as name2_28_2_,
- testentity2_.version as version3_28_2_,
- testentity3_.link_id as link_id4_28_3_,
- testentity3_.linkJoin_id as linkjoin5_28_3_,
- testentity3_.linkLazy_id as linklazy6_28_3_,
- testentity3_.linkLazyJoin_id as linklazy7_28_3_,
- testentity3_.linkLazyNoProxyJoin_id as linklazy9_28_3_,
- testentity3_.linkLazySelect_id as linklaz11_28_3_,
- testentity3_.linkNoProxyJoin_id as linknop13_28_3_,
- testentity3_.linkSelect_id as linksel15_28_3_,
- testentity3_.name as name2_28_3_,
- testentity3_.version as version3_28_3_,
- testentity4_.link_id as link_id4_28_4_,
- testentity4_.linkJoin_id as linkjoin5_28_4_,
- testentity4_.linkLazy_id as linklazy6_28_4_,
- testentity4_.linkLazyJoin_id as linklazy7_28_4_,
- testentity4_.linkLazyNoProxyJoin_id as linklazy9_28_4_,
- testentity4_.linkLazySelect_id as linklaz11_28_4_,
- testentity4_.linkNoProxyJoin_id as linknop13_28_4_,
- testentity4_.linkSelect_id as linksel15_28_4_,
- testentity4_.name as name2_28_4_,
- testentity4_.version as version3_28_4_,
- testentity5_.link_id as link_id4_28_5_,
- testentity5_.linkJoin_id as linkjoin5_28_5_,
- testentity5_.linkLazy_id as linklazy6_28_5_,
- testentity5_.linkLazyJoin_id as linklazy7_28_5_,
- testentity5_.linkLazyNoProxyJoin_id as linklazy9_28_5_,
- testentity5_.linkLazySelect_id as linklaz11_28_5_,
- testentity5_.linkNoProxyJoin_id as linknop13_28_5_,
- testentity5_.linkSelect_id as linksel15_28_5_,
- testentity5_.name as name2_28_5_,
- testentity5_.version as version3_28_5_,
- testentity6_.link_id as link_id4_28_6_,
- testentity6_.linkJoin_id as linkjoin5_28_6_,
- testentity6_.linkLazy_id as linklazy6_28_6_,
- testentity6_.linkLazyJoin_id as linklazy7_28_6_,
- testentity6_.linkLazyNoProxyJoin_id as linklazy9_28_6_,
- testentity6_.linkLazySelect_id as linklaz11_28_6_,
- testentity6_.linkNoProxyJoin_id as linknop13_28_6_,
- testentity6_.linkSelect_id as linksel15_28_6_,
- testentity6_.name as name2_28_6_,
- testentity6_.version as version3_28_6_,
- testentity7_.link_id as link_id4_28_7_,
- testentity7_.linkJoin_id as linkjoin5_28_7_,
- testentity7_.linkLazy_id as linklazy6_28_7_,
- testentity7_.linkLazyJoin_id as linklazy7_28_7_,
- testentity7_.linkLazyNoProxyJoin_id as linklazy9_28_7_,
- testentity7_.linkLazySelect_id as linklaz11_28_7_,
- testentity7_.linkNoProxyJoin_id as linknop13_28_7_,
- testentity7_.linkSelect_id as linksel15_28_7_,
- testentity7_.name as name2_28_7_,
- testentity7_.version as version3_28_7_,
- testentity8_.link_id as link_id4_28_8_,
- testentity8_.linkJoin_id as linkjoin5_28_8_,
- testentity8_.linkLazy_id as linklazy6_28_8_,
- testentity8_.linkLazyJoin_id as linklazy7_28_8_,
- testentity8_.linkLazyNoProxyJoin_id as linklazy9_28_8_,
- testentity8_.linkLazySelect_id as linklaz11_28_8_,
- testentity8_.linkNoProxyJoin_id as linknop13_28_8_,
- testentity8_.linkSelect_id as linksel15_28_8_,
- testentity8_.name as name2_28_8_,
- testentity8_.version as version3_28_8_,
- testentity9_.link_id as link_id4_28_9_,
- testentity9_.linkJoin_id as linkjoin5_28_9_,
- testentity9_.linkLazy_id as linklazy6_28_9_,
- testentity9_.linkLazyJoin_id as linklazy7_28_9_,
- testentity9_.linkLazyNoProxyJoin_id as linklazy9_28_9_,
- testentity9_.linkLazySelect_id as linklaz11_28_9_,
- testentity9_.linkNoProxyJoin_id as linknop13_28_9_,
- testentity9_.linkSelect_id as linksel15_28_9_,
- testentity9_.name as name2_28_9_,
- testentity9_.version as version3_28_9_,
- testentity10_.link_id as link_id4_28_10_,
- testentity10_.linkJoin_id as linkjoin5_28_10_,
- testentity10_.linkLazy_id as linklazy6_28_10_,
- testentity10_.linkLazyJoin_id as linklazy7_28_10_,
- testentity10_.linkLazyNoProxyJoin_id as linklazy9_28_10_,
- testentity10_.linkLazySelect_id as linklaz11_28_10_,
- testentity10_.linkNoProxyJoin_id as linknop13_28_10_,
- testentity10_.linkSelect_id as linksel15_28_10_,
- testentity10_.name as name2_28_10_,
- testentity10_.version as version3_28_10_,
- testentity11_.link_id as link_id4_28_11_,
- testentity11_.linkJoin_id as linkjoin5_28_11_,
- testentity11_.linkLazy_id as linklazy6_28_11_,
- testentity11_.linkLazyJoin_id as linklazy7_28_11_,
- testentity11_.linkLazyNoProxyJoin_id as linklazy9_28_11_,
- testentity11_.linkLazySelect_id as linklaz11_28_11_,
- testentity11_.linkNoProxyJoin_id as linknop13_28_11_,
- testentity11_.linkSelect_id as linksel15_28_11_,
- testentity11_.name as name2_28_11_,
- testentity11_.version as version3_28_11_,
- testentity12_.link_id as link_id4_28_12_,
- testentity12_.linkJoin_id as linkjoin5_28_12_,
- testentity12_.linkLazy_id as linklazy6_28_12_,
- testentity12_.linkLazyJoin_id as linklazy7_28_12_,
- testentity12_.linkLazyNoProxyJoin_id as linklazy9_28_12_,
- testentity12_.linkLazySelect_id as linklaz11_28_12_,
- testentity12_.linkNoProxyJoin_id as linknop13_28_12_,
- testentity12_.linkSelect_id as linksel15_28_12_,
- testentity12_.name as name2_28_12_,
- testentity12_.version as version3_28_12_
- from
- loading_test testentity0_
- left outer join
- loading_test testentity1_
- on testentity0_.link_id=testentity1_.id
- left outer join
- loading_test testentity2_
- on testentity0_.linkNoProxyJoin_id=testentity2_.id
- left outer join
- loading_test testentity3_
- on testentity0_.linkLazyJoin_id=testentity3_.id
- left outer join
- loading_test testentity4_
- on testentity0_.linkSelect_id=testentity4_.id
- left outer join
- loading_test testentity5_
- on testentity0_.linkLazyNoProxyJoin_id=testentity5_.id
- left outer join
- loading_test testentity6_
- on testentity0_.linkLazyNoProxySelect_id=testentity6_.id
- left outer join
- loading_test testentity7_
- on testentity0_.linkLazySelect_id=testentity7_.id
- left outer join
- loading_test testentity8_
- on testentity0_.linkNoProxy_id=testentity8_.id
- left outer join
- loading_test testentity9_
- on testentity0_.linkLazy_id=testentity9_.id
- left outer join
- loading_test testentity10_
- on testentity0_.linkLazyNoProxy_id=testentity10_.id
- left outer join
- loading_test testentity11_
- on testentity0_.linkJoin_id=testentity11_.id
- left outer join
- loading_test testentity12_
- on testentity0_.linkNoProxySelect_id=testentity12_.id
- where
- testentity0_.id=103
- ######### test.reportInitializationState();
- ######### ================================================================================
- ######### #103:id-name-graph Initialization State
- ######### --------------------------------------------------------------------------------
- ######### link: YES 4/4
- ######### linkJoin: YES 4/4
- ######### linkLazy: YES 4/4
- ######### linkLazyJoin: YES 4/4
- ######### linkLazyNoProxy: n/a 0/4
- ######### linkLazyNoProxyJoin: YES 4/4
- ######### linkLazyNoProxySelect: n/a 0/4
- ######### linkLazySelect: YES 4/4
- ######### linkNoProxy: n/a 0/4
- ######### linkNoProxyJoin: YES 4/4
- ######### linkNoProxySelect: n/a 0/4
- ######### linkSelect: YES 4/4
- ######### --------------------------------------------------------------------------------
- ######### #103:id-name-graph Reflection State
- ######### --------------------------------------------------------------------------------
- ######### link: HERE 4/4
- ######### linkJoin: HERE 4/4
- ######### linkLazy: HERE 4/4
- ######### linkLazyJoin: HERE 4/4
- ######### linkLazyNoProxy: null 0/4
- ######### linkLazyNoProxyJoin: HERE 4/4
- ######### linkLazyNoProxySelect: null 0/4
- ######### linkLazySelect: HERE 4/4
- ######### linkNoProxy: null 0/4
- ######### linkNoProxyJoin: HERE 4/4
- ######### linkNoProxySelect: null 0/4
- ######### linkSelect: HERE 4/4
- ######### ================================================================================
- ######### test.printAll();
- ######### ================================================================================
- ######### #103:id-name-graph
- ######### --------------------------------------------------------------------------------
- ######### link = #1:link
- ######### linkSelect = #2:linkSelect
- ######### linkJoin = #3:linkJoin
- Hibernate:
- select
- testentity_.linkLazyNoProxy_id as linklazy8_28_,
- testentity_.linkLazyNoProxySelect_id as linklaz10_28_,
- testentity_.linkNoProxy_id as linknop12_28_,
- testentity_.linkNoProxySelect_id as linknop14_28_
- from
- loading_test testentity_
- where
- testentity_.id=?
- ######### linkNoProxy = #5:linkNoProxy
- ######### linkNoProxySelect = #6:linkNoProxySelect
- ######### linkNoProxyJoin = #7:linkNoProxyJoin
- ######### linkLazy = #9:linkLazy
- ######### linkLazySelect = #10:linkLazySelect
- ######### linkLazyJoin = #11:linkLazyJoin
- ######### linkLazyNoProxy = #13:linkLazyNoProxy
- ######### linkLazyNoProxySelect = #14:linkLazyNoProxySelect
- ######### linkLazyNoProxyJoin = #15:linkLazyNoProxyJoin
- ######### ================================================================================
- ######### ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ######### ################################################################################
- ######### TEST 100 no graph no fetch printAll
- ######### ################################################################################
- ######### final CriteriaQuery<TestEntity> query = builder.createQuery(TestEntity.class);
- ######### final Root<TestEntity> root = query.from(TestEntity.class);
- ######### final Path<Long> id = root.get("id");
- ######### query.where(builder.equal(id, 100L));
- ######### final TypedQuery<TestEntity> tq = session.createQuery(query);
- ######### final TestEntity test = tq.getSingleResult();
- Hibernate:
- select
- testentity0_.id as id1_28_,
- testentity0_.link_id as link_id4_28_,
- testentity0_.linkJoin_id as linkjoin5_28_,
- testentity0_.linkLazy_id as linklazy6_28_,
- testentity0_.linkLazyJoin_id as linklazy7_28_,
- testentity0_.linkLazyNoProxyJoin_id as linklazy9_28_,
- testentity0_.linkLazySelect_id as linklaz11_28_,
- testentity0_.linkNoProxyJoin_id as linknop13_28_,
- testentity0_.linkSelect_id as linksel15_28_,
- testentity0_.name as name2_28_,
- testentity0_.version as version3_28_
- from
- loading_test testentity0_
- where
- testentity0_.id=100
- Hibernate:
- select
- testentity0_.id as id1_28_0_,
- testentity0_.link_id as link_id4_28_0_,
- testentity0_.linkJoin_id as linkjoin5_28_0_,
- testentity0_.linkLazy_id as linklazy6_28_0_,
- testentity0_.linkLazyJoin_id as linklazy7_28_0_,
- testentity0_.linkLazyNoProxyJoin_id as linklazy9_28_0_,
- testentity0_.linkLazySelect_id as linklaz11_28_0_,
- testentity0_.linkNoProxyJoin_id as linknop13_28_0_,
- testentity0_.linkSelect_id as linksel15_28_0_,
- testentity0_.name as name2_28_0_,
- testentity0_.version as version3_28_0_,
- testentity1_.id as id1_28_1_,
- testentity1_.link_id as link_id4_28_1_,
- testentity1_.linkJoin_id as linkjoin5_28_1_,
- testentity1_.linkLazy_id as linklazy6_28_1_,
- testentity1_.linkLazyJoin_id as linklazy7_28_1_,
- testentity1_.linkLazyNoProxyJoin_id as linklazy9_28_1_,
- testentity1_.linkLazySelect_id as linklaz11_28_1_,
- testentity1_.linkNoProxyJoin_id as linknop13_28_1_,
- testentity1_.linkSelect_id as linksel15_28_1_,
- testentity1_.name as name2_28_1_,
- testentity1_.version as version3_28_1_,
- testentity2_.id as id1_28_2_,
- testentity2_.link_id as link_id4_28_2_,
- testentity2_.linkJoin_id as linkjoin5_28_2_,
- testentity2_.linkLazy_id as linklazy6_28_2_,
- testentity2_.linkLazyJoin_id as linklazy7_28_2_,
- testentity2_.linkLazyNoProxyJoin_id as linklazy9_28_2_,
- testentity2_.linkLazySelect_id as linklaz11_28_2_,
- testentity2_.linkNoProxyJoin_id as linknop13_28_2_,
- testentity2_.linkSelect_id as linksel15_28_2_,
- testentity2_.name as name2_28_2_,
- testentity2_.version as version3_28_2_,
- testentity3_.id as id1_28_3_,
- testentity3_.link_id as link_id4_28_3_,
- testentity3_.linkJoin_id as linkjoin5_28_3_,
- testentity3_.linkLazy_id as linklazy6_28_3_,
- testentity3_.linkLazyJoin_id as linklazy7_28_3_,
- testentity3_.linkLazyNoProxyJoin_id as linklazy9_28_3_,
- testentity3_.linkLazySelect_id as linklaz11_28_3_,
- testentity3_.linkNoProxyJoin_id as linknop13_28_3_,
- testentity3_.linkSelect_id as linksel15_28_3_,
- testentity3_.name as name2_28_3_,
- testentity3_.version as version3_28_3_,
- testentity4_.id as id1_28_4_,
- testentity4_.link_id as link_id4_28_4_,
- testentity4_.linkJoin_id as linkjoin5_28_4_,
- testentity4_.linkLazy_id as linklazy6_28_4_,
- testentity4_.linkLazyJoin_id as linklazy7_28_4_,
- testentity4_.linkLazyNoProxyJoin_id as linklazy9_28_4_,
- testentity4_.linkLazySelect_id as linklaz11_28_4_,
- testentity4_.linkNoProxyJoin_id as linknop13_28_4_,
- testentity4_.linkSelect_id as linksel15_28_4_,
- testentity4_.name as name2_28_4_,
- testentity4_.version as version3_28_4_,
- testentity5_.id as id1_28_5_,
- testentity5_.link_id as link_id4_28_5_,
- testentity5_.linkJoin_id as linkjoin5_28_5_,
- testentity5_.linkLazy_id as linklazy6_28_5_,
- testentity5_.linkLazyJoin_id as linklazy7_28_5_,
- testentity5_.linkLazyNoProxyJoin_id as linklazy9_28_5_,
- testentity5_.linkLazySelect_id as linklaz11_28_5_,
- testentity5_.linkNoProxyJoin_id as linknop13_28_5_,
- testentity5_.linkSelect_id as linksel15_28_5_,
- testentity5_.name as name2_28_5_,
- testentity5_.version as version3_28_5_,
- testentity6_.id as id1_28_6_,
- testentity6_.link_id as link_id4_28_6_,
- testentity6_.linkJoin_id as linkjoin5_28_6_,
- testentity6_.linkLazy_id as linklazy6_28_6_,
- testentity6_.linkLazyJoin_id as linklazy7_28_6_,
- testentity6_.linkLazyNoProxyJoin_id as linklazy9_28_6_,
- testentity6_.linkLazySelect_id as linklaz11_28_6_,
- testentity6_.linkNoProxyJoin_id as linknop13_28_6_,
- testentity6_.linkSelect_id as linksel15_28_6_,
- testentity6_.name as name2_28_6_,
- testentity6_.version as version3_28_6_
- from
- loading_test testentity0_
- left outer join
- loading_test testentity1_
- on testentity0_.link_id=testentity1_.id
- left outer join
- loading_test testentity2_
- on testentity1_.linkJoin_id=testentity2_.id
- left outer join
- loading_test testentity3_
- on testentity2_.linkLazyJoin_id=testentity3_.id
- left outer join
- loading_test testentity4_
- on testentity3_.linkLazyNoProxyJoin_id=testentity4_.id
- left outer join
- loading_test testentity5_
- on testentity4_.linkNoProxy_id=testentity5_.id
- left outer join
- loading_test testentity6_
- on testentity5_.linkNoProxyJoin_id=testentity6_.id
- where
- testentity0_.id in (
- ?, ?, ?, ?, ?, ?, ?, ?
- )
- ######### test.reportInitializationState();
- ######### ================================================================================
- ######### #100:no-graph Initialization State
- ######### --------------------------------------------------------------------------------
- ######### link: YES 5/5
- ######### linkJoin: YES 5/5
- ######### linkLazy: YES 5/5
- ######### linkLazyJoin: YES 5/5
- ######### linkLazyNoProxy: n/a 0/5
- ######### linkLazyNoProxyJoin: YES 5/5
- ######### linkLazyNoProxySelect: n/a 0/5
- ######### linkLazySelect: YES 5/5
- ######### linkNoProxy: n/a 0/5
- ######### linkNoProxyJoin: YES 5/5
- ######### linkNoProxySelect: n/a 0/5
- ######### linkSelect: YES 5/5
- ######### --------------------------------------------------------------------------------
- ######### #100:no-graph Reflection State
- ######### --------------------------------------------------------------------------------
- ######### link: HERE 5/5
- ######### linkJoin: HERE 5/5
- ######### linkLazy: HERE 5/5
- ######### linkLazyJoin: HERE 5/5
- ######### linkLazyNoProxy: null 0/5
- ######### linkLazyNoProxyJoin: HERE 5/5
- ######### linkLazyNoProxySelect: null 0/5
- ######### linkLazySelect: HERE 5/5
- ######### linkNoProxy: null 0/5
- ######### linkNoProxyJoin: HERE 5/5
- ######### linkNoProxySelect: null 0/5
- ######### linkSelect: HERE 5/5
- ######### ================================================================================
- ######### test.printAll();
- ######### ================================================================================
- ######### #100:no-graph
- ######### --------------------------------------------------------------------------------
- ######### link = #1:link
- ######### linkSelect = #2:linkSelect
- ######### linkJoin = #3:linkJoin
- Hibernate:
- select
- testentity_.linkLazyNoProxy_id as linklazy8_28_,
- testentity_.linkLazyNoProxySelect_id as linklaz10_28_,
- testentity_.linkNoProxy_id as linknop12_28_,
- testentity_.linkNoProxySelect_id as linknop14_28_
- from
- loading_test testentity_
- where
- testentity_.id=?
- Hibernate:
- select
- testentity0_.id as id1_28_0_,
- testentity0_.link_id as link_id4_28_0_,
- testentity0_.linkJoin_id as linkjoin5_28_0_,
- testentity0_.linkLazy_id as linklazy6_28_0_,
- testentity0_.linkLazyJoin_id as linklazy7_28_0_,
- testentity0_.linkLazyNoProxyJoin_id as linklazy9_28_0_,
- testentity0_.linkLazySelect_id as linklaz11_28_0_,
- testentity0_.linkNoProxyJoin_id as linknop13_28_0_,
- testentity0_.linkSelect_id as linksel15_28_0_,
- testentity0_.name as name2_28_0_,
- testentity0_.version as version3_28_0_,
- testentity1_.id as id1_28_1_,
- testentity1_.link_id as link_id4_28_1_,
- testentity1_.linkJoin_id as linkjoin5_28_1_,
- testentity1_.linkLazy_id as linklazy6_28_1_,
- testentity1_.linkLazyJoin_id as linklazy7_28_1_,
- testentity1_.linkLazyNoProxyJoin_id as linklazy9_28_1_,
- testentity1_.linkLazySelect_id as linklaz11_28_1_,
- testentity1_.linkNoProxyJoin_id as linknop13_28_1_,
- testentity1_.linkSelect_id as linksel15_28_1_,
- testentity1_.name as name2_28_1_,
- testentity1_.version as version3_28_1_,
- testentity2_.id as id1_28_2_,
- testentity2_.link_id as link_id4_28_2_,
- testentity2_.linkJoin_id as linkjoin5_28_2_,
- testentity2_.linkLazy_id as linklazy6_28_2_,
- testentity2_.linkLazyJoin_id as linklazy7_28_2_,
- testentity2_.linkLazyNoProxyJoin_id as linklazy9_28_2_,
- testentity2_.linkLazySelect_id as linklaz11_28_2_,
- testentity2_.linkNoProxyJoin_id as linknop13_28_2_,
- testentity2_.linkSelect_id as linksel15_28_2_,
- testentity2_.name as name2_28_2_,
- testentity2_.version as version3_28_2_,
- testentity3_.id as id1_28_3_,
- testentity3_.link_id as link_id4_28_3_,
- testentity3_.linkJoin_id as linkjoin5_28_3_,
- testentity3_.linkLazy_id as linklazy6_28_3_,
- testentity3_.linkLazyJoin_id as linklazy7_28_3_,
- testentity3_.linkLazyNoProxyJoin_id as linklazy9_28_3_,
- testentity3_.linkLazySelect_id as linklaz11_28_3_,
- testentity3_.linkNoProxyJoin_id as linknop13_28_3_,
- testentity3_.linkSelect_id as linksel15_28_3_,
- testentity3_.name as name2_28_3_,
- testentity3_.version as version3_28_3_,
- testentity4_.id as id1_28_4_,
- testentity4_.link_id as link_id4_28_4_,
- testentity4_.linkJoin_id as linkjoin5_28_4_,
- testentity4_.linkLazy_id as linklazy6_28_4_,
- testentity4_.linkLazyJoin_id as linklazy7_28_4_,
- testentity4_.linkLazyNoProxyJoin_id as linklazy9_28_4_,
- testentity4_.linkLazySelect_id as linklaz11_28_4_,
- testentity4_.linkNoProxyJoin_id as linknop13_28_4_,
- testentity4_.linkSelect_id as linksel15_28_4_,
- testentity4_.name as name2_28_4_,
- testentity4_.version as version3_28_4_,
- testentity5_.id as id1_28_5_,
- testentity5_.link_id as link_id4_28_5_,
- testentity5_.linkJoin_id as linkjoin5_28_5_,
- testentity5_.linkLazy_id as linklazy6_28_5_,
- testentity5_.linkLazyJoin_id as linklazy7_28_5_,
- testentity5_.linkLazyNoProxyJoin_id as linklazy9_28_5_,
- testentity5_.linkLazySelect_id as linklaz11_28_5_,
- testentity5_.linkNoProxyJoin_id as linknop13_28_5_,
- testentity5_.linkSelect_id as linksel15_28_5_,
- testentity5_.name as name2_28_5_,
- testentity5_.version as version3_28_5_,
- testentity6_.id as id1_28_6_,
- testentity6_.link_id as link_id4_28_6_,
- testentity6_.linkJoin_id as linkjoin5_28_6_,
- testentity6_.linkLazy_id as linklazy6_28_6_,
- testentity6_.linkLazyJoin_id as linklazy7_28_6_,
- testentity6_.linkLazyNoProxyJoin_id as linklazy9_28_6_,
- testentity6_.linkLazySelect_id as linklaz11_28_6_,
- testentity6_.linkNoProxyJoin_id as linknop13_28_6_,
- testentity6_.linkSelect_id as linksel15_28_6_,
- testentity6_.name as name2_28_6_,
- testentity6_.version as version3_28_6_
- from
- loading_test testentity0_
- left outer join
- loading_test testentity1_
- on testentity0_.link_id=testentity1_.id
- left outer join
- loading_test testentity2_
- on testentity1_.linkJoin_id=testentity2_.id
- left outer join
- loading_test testentity3_
- on testentity2_.linkLazyJoin_id=testentity3_.id
- left outer join
- loading_test testentity4_
- on testentity3_.linkLazyNoProxyJoin_id=testentity4_.id
- left outer join
- loading_test testentity5_
- on testentity4_.linkNoProxy_id=testentity5_.id
- left outer join
- loading_test testentity6_
- on testentity5_.linkNoProxyJoin_id=testentity6_.id
- where
- testentity0_.id=?
- Hibernate:
- select
- testentity0_.id as id1_28_0_,
- testentity0_.link_id as link_id4_28_0_,
- testentity0_.linkJoin_id as linkjoin5_28_0_,
- testentity0_.linkLazy_id as linklazy6_28_0_,
- testentity0_.linkLazyJoin_id as linklazy7_28_0_,
- testentity0_.linkLazyNoProxyJoin_id as linklazy9_28_0_,
- testentity0_.linkLazySelect_id as linklaz11_28_0_,
- testentity0_.linkNoProxyJoin_id as linknop13_28_0_,
- testentity0_.linkSelect_id as linksel15_28_0_,
- testentity0_.name as name2_28_0_,
- testentity0_.version as version3_28_0_,
- testentity1_.id as id1_28_1_,
- testentity1_.link_id as link_id4_28_1_,
- testentity1_.linkJoin_id as linkjoin5_28_1_,
- testentity1_.linkLazy_id as linklazy6_28_1_,
- testentity1_.linkLazyJoin_id as linklazy7_28_1_,
- testentity1_.linkLazyNoProxyJoin_id as linklazy9_28_1_,
- testentity1_.linkLazySelect_id as linklaz11_28_1_,
- testentity1_.linkNoProxyJoin_id as linknop13_28_1_,
- testentity1_.linkSelect_id as linksel15_28_1_,
- testentity1_.name as name2_28_1_,
- testentity1_.version as version3_28_1_,
- testentity2_.id as id1_28_2_,
- testentity2_.link_id as link_id4_28_2_,
- testentity2_.linkJoin_id as linkjoin5_28_2_,
- testentity2_.linkLazy_id as linklazy6_28_2_,
- testentity2_.linkLazyJoin_id as linklazy7_28_2_,
- testentity2_.linkLazyNoProxyJoin_id as linklazy9_28_2_,
- testentity2_.linkLazySelect_id as linklaz11_28_2_,
- testentity2_.linkNoProxyJoin_id as linknop13_28_2_,
- testentity2_.linkSelect_id as linksel15_28_2_,
- testentity2_.name as name2_28_2_,
- testentity2_.version as version3_28_2_,
- testentity3_.id as id1_28_3_,
- testentity3_.link_id as link_id4_28_3_,
- testentity3_.linkJoin_id as linkjoin5_28_3_,
- testentity3_.linkLazy_id as linklazy6_28_3_,
- testentity3_.linkLazyJoin_id as linklazy7_28_3_,
- testentity3_.linkLazyNoProxyJoin_id as linklazy9_28_3_,
- testentity3_.linkLazySelect_id as linklaz11_28_3_,
- testentity3_.linkNoProxyJoin_id as linknop13_28_3_,
- testentity3_.linkSelect_id as linksel15_28_3_,
- testentity3_.name as name2_28_3_,
- testentity3_.version as version3_28_3_,
- testentity4_.id as id1_28_4_,
- testentity4_.link_id as link_id4_28_4_,
- testentity4_.linkJoin_id as linkjoin5_28_4_,
- testentity4_.linkLazy_id as linklazy6_28_4_,
- testentity4_.linkLazyJoin_id as linklazy7_28_4_,
- testentity4_.linkLazyNoProxyJoin_id as linklazy9_28_4_,
- testentity4_.linkLazySelect_id as linklaz11_28_4_,
- testentity4_.linkNoProxyJoin_id as linknop13_28_4_,
- testentity4_.linkSelect_id as linksel15_28_4_,
- testentity4_.name as name2_28_4_,
- testentity4_.version as version3_28_4_,
- testentity5_.id as id1_28_5_,
- testentity5_.link_id as link_id4_28_5_,
- testentity5_.linkJoin_id as linkjoin5_28_5_,
- testentity5_.linkLazy_id as linklazy6_28_5_,
- testentity5_.linkLazyJoin_id as linklazy7_28_5_,
- testentity5_.linkLazyNoProxyJoin_id as linklazy9_28_5_,
- testentity5_.linkLazySelect_id as linklaz11_28_5_,
- testentity5_.linkNoProxyJoin_id as linknop13_28_5_,
- testentity5_.linkSelect_id as linksel15_28_5_,
- testentity5_.name as name2_28_5_,
- testentity5_.version as version3_28_5_,
- testentity6_.id as id1_28_6_,
- testentity6_.link_id as link_id4_28_6_,
- testentity6_.linkJoin_id as linkjoin5_28_6_,
- testentity6_.linkLazy_id as linklazy6_28_6_,
- testentity6_.linkLazyJoin_id as linklazy7_28_6_,
- testentity6_.linkLazyNoProxyJoin_id as linklazy9_28_6_,
- testentity6_.linkLazySelect_id as linklaz11_28_6_,
- testentity6_.linkNoProxyJoin_id as linknop13_28_6_,
- testentity6_.linkSelect_id as linksel15_28_6_,
- testentity6_.name as name2_28_6_,
- testentity6_.version as version3_28_6_
- from
- loading_test testentity0_
- left outer join
- loading_test testentity1_
- on testentity0_.link_id=testentity1_.id
- left outer join
- loading_test testentity2_
- on testentity1_.linkJoin_id=testentity2_.id
- left outer join
- loading_test testentity3_
- on testentity2_.linkLazyJoin_id=testentity3_.id
- left outer join
- loading_test testentity4_
- on testentity3_.linkLazyNoProxyJoin_id=testentity4_.id
- left outer join
- loading_test testentity5_
- on testentity4_.linkNoProxy_id=testentity5_.id
- left outer join
- loading_test testentity6_
- on testentity5_.linkNoProxyJoin_id=testentity6_.id
- where
- testentity0_.id=?
- Hibernate:
- select
- testentity0_.id as id1_28_0_,
- testentity0_.link_id as link_id4_28_0_,
- testentity0_.linkJoin_id as linkjoin5_28_0_,
- testentity0_.linkLazy_id as linklazy6_28_0_,
- testentity0_.linkLazyJoin_id as linklazy7_28_0_,
- testentity0_.linkLazyNoProxyJoin_id as linklazy9_28_0_,
- testentity0_.linkLazySelect_id as linklaz11_28_0_,
- testentity0_.linkNoProxyJoin_id as linknop13_28_0_,
- testentity0_.linkSelect_id as linksel15_28_0_,
- testentity0_.name as name2_28_0_,
- testentity0_.version as version3_28_0_,
- testentity1_.id as id1_28_1_,
- testentity1_.link_id as link_id4_28_1_,
- testentity1_.linkJoin_id as linkjoin5_28_1_,
- testentity1_.linkLazy_id as linklazy6_28_1_,
- testentity1_.linkLazyJoin_id as linklazy7_28_1_,
- testentity1_.linkLazyNoProxyJoin_id as linklazy9_28_1_,
- testentity1_.linkLazySelect_id as linklaz11_28_1_,
- testentity1_.linkNoProxyJoin_id as linknop13_28_1_,
- testentity1_.linkSelect_id as linksel15_28_1_,
- testentity1_.name as name2_28_1_,
- testentity1_.version as version3_28_1_,
- testentity2_.id as id1_28_2_,
- testentity2_.link_id as link_id4_28_2_,
- testentity2_.linkJoin_id as linkjoin5_28_2_,
- testentity2_.linkLazy_id as linklazy6_28_2_,
- testentity2_.linkLazyJoin_id as linklazy7_28_2_,
- testentity2_.linkLazyNoProxyJoin_id as linklazy9_28_2_,
- testentity2_.linkLazySelect_id as linklaz11_28_2_,
- testentity2_.linkNoProxyJoin_id as linknop13_28_2_,
- testentity2_.linkSelect_id as linksel15_28_2_,
- testentity2_.name as name2_28_2_,
- testentity2_.version as version3_28_2_,
- testentity3_.id as id1_28_3_,
- testentity3_.link_id as link_id4_28_3_,
- testentity3_.linkJoin_id as linkjoin5_28_3_,
- testentity3_.linkLazy_id as linklazy6_28_3_,
- testentity3_.linkLazyJoin_id as linklazy7_28_3_,
- testentity3_.linkLazyNoProxyJoin_id as linklazy9_28_3_,
- testentity3_.linkLazySelect_id as linklaz11_28_3_,
- testentity3_.linkNoProxyJoin_id as linknop13_28_3_,
- testentity3_.linkSelect_id as linksel15_28_3_,
- testentity3_.name as name2_28_3_,
- testentity3_.version as version3_28_3_,
- testentity4_.id as id1_28_4_,
- testentity4_.link_id as link_id4_28_4_,
- testentity4_.linkJoin_id as linkjoin5_28_4_,
- testentity4_.linkLazy_id as linklazy6_28_4_,
- testentity4_.linkLazyJoin_id as linklazy7_28_4_,
- testentity4_.linkLazyNoProxyJoin_id as linklazy9_28_4_,
- testentity4_.linkLazySelect_id as linklaz11_28_4_,
- testentity4_.linkNoProxyJoin_id as linknop13_28_4_,
- testentity4_.linkSelect_id as linksel15_28_4_,
- testentity4_.name as name2_28_4_,
- testentity4_.version as version3_28_4_,
- testentity5_.id as id1_28_5_,
- testentity5_.link_id as link_id4_28_5_,
- testentity5_.linkJoin_id as linkjoin5_28_5_,
- testentity5_.linkLazy_id as linklazy6_28_5_,
- testentity5_.linkLazyJoin_id as linklazy7_28_5_,
- testentity5_.linkLazyNoProxyJoin_id as linklazy9_28_5_,
- testentity5_.linkLazySelect_id as linklaz11_28_5_,
- testentity5_.linkNoProxyJoin_id as linknop13_28_5_,
- testentity5_.linkSelect_id as linksel15_28_5_,
- testentity5_.name as name2_28_5_,
- testentity5_.version as version3_28_5_,
- testentity6_.id as id1_28_6_,
- testentity6_.link_id as link_id4_28_6_,
- testentity6_.linkJoin_id as linkjoin5_28_6_,
- testentity6_.linkLazy_id as linklazy6_28_6_,
- testentity6_.linkLazyJoin_id as linklazy7_28_6_,
- testentity6_.linkLazyNoProxyJoin_id as linklazy9_28_6_,
- testentity6_.linkLazySelect_id as linklaz11_28_6_,
- testentity6_.linkNoProxyJoin_id as linknop13_28_6_,
- testentity6_.linkSelect_id as linksel15_28_6_,
- testentity6_.name as name2_28_6_,
- testentity6_.version as version3_28_6_
- from
- loading_test testentity0_
- left outer join
- loading_test testentity1_
- on testentity0_.link_id=testentity1_.id
- left outer join
- loading_test testentity2_
- on testentity1_.linkJoin_id=testentity2_.id
- left outer join
- loading_test testentity3_
- on testentity2_.linkLazyJoin_id=testentity3_.id
- left outer join
- loading_test testentity4_
- on testentity3_.linkLazyNoProxyJoin_id=testentity4_.id
- left outer join
- loading_test testentity5_
- on testentity4_.linkNoProxy_id=testentity5_.id
- left outer join
- loading_test testentity6_
- on testentity5_.linkNoProxyJoin_id=testentity6_.id
- where
- testentity0_.id=?
- ######### linkNoProxy = #5:linkNoProxy
- ######### linkNoProxySelect = #6:linkNoProxySelect
- ######### linkNoProxyJoin = #7:linkNoProxyJoin
- ######### linkLazy = #9:linkLazy
- ######### linkLazySelect = #10:linkLazySelect
- ######### linkLazyJoin = #11:linkLazyJoin
- ######### linkLazyNoProxy = #13:linkLazyNoProxy
- ######### linkLazyNoProxySelect = #14:linkLazyNoProxySelect
- ######### linkLazyNoProxyJoin = #15:linkLazyNoProxyJoin
- ######### ================================================================================
- ######### ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ######### ################################################################################
- ######### TEST 101 graph=1/javax.persistence.loadgraph no fetch printAll
- ######### ################################################################################
- ######### final CriteriaQuery<TestEntity> query = builder.createQuery(TestEntity.class);
- ######### final Root<TestEntity> root = query.from(TestEntity.class);
- ######### final Path<Long> id = root.get("id");
- ######### query.where(builder.equal(id, 101L));
- ######### final TypedQuery<TestEntity> tq = session.createQuery(query);
- ######### final String graphText = "link, linkSelect, linkJoin, linkNoProxy, linkNoProxySelect, linkNoProxyJoin, linkLazy, linkLazySelect, linkLazyJoin, linkLazyNoProxy, linkLazyNoProxySelect, linkLazyNoProxyJoin";
- ######### final RootGraph<TestEntity> entityGraph = GraphParser.parse(TestEntity.class, graphText, session.getEntityManager());
- ######### tq.setHint("javax.persistence.loadgraph", entityGraph);
- ######### final TestEntity test = tq.getSingleResult();
- Hibernate:
- select
- testentity0_.id as id1_28_0_,
- testentity1_.id as id1_28_1_,
- testentity2_.id as id1_28_2_,
- testentity3_.id as id1_28_3_,
- testentity4_.id as id1_28_4_,
- testentity5_.id as id1_28_5_,
- testentity6_.id as id1_28_6_,
- testentity7_.id as id1_28_7_,
- testentity8_.id as id1_28_8_,
- testentity9_.id as id1_28_9_,
- testentity10_.id as id1_28_10_,
- testentity11_.id as id1_28_11_,
- testentity12_.id as id1_28_12_,
- testentity0_.link_id as link_id4_28_0_,
- testentity0_.linkJoin_id as linkjoin5_28_0_,
- testentity0_.linkLazy_id as linklazy6_28_0_,
- testentity0_.linkLazyJoin_id as linklazy7_28_0_,
- testentity0_.linkLazyNoProxyJoin_id as linklazy9_28_0_,
- testentity0_.linkLazySelect_id as linklaz11_28_0_,
- testentity0_.linkNoProxyJoin_id as linknop13_28_0_,
- testentity0_.linkSelect_id as linksel15_28_0_,
- testentity0_.name as name2_28_0_,
- testentity0_.version as version3_28_0_,
- testentity1_.link_id as link_id4_28_1_,
- testentity1_.linkJoin_id as linkjoin5_28_1_,
- testentity1_.linkLazy_id as linklazy6_28_1_,
- testentity1_.linkLazyJoin_id as linklazy7_28_1_,
- testentity1_.linkLazyNoProxyJoin_id as linklazy9_28_1_,
- testentity1_.linkLazySelect_id as linklaz11_28_1_,
- testentity1_.linkNoProxyJoin_id as linknop13_28_1_,
- testentity1_.linkSelect_id as linksel15_28_1_,
- testentity1_.name as name2_28_1_,
- testentity1_.version as version3_28_1_,
- testentity2_.link_id as link_id4_28_2_,
- testentity2_.linkJoin_id as linkjoin5_28_2_,
- testentity2_.linkLazy_id as linklazy6_28_2_,
- testentity2_.linkLazyJoin_id as linklazy7_28_2_,
- testentity2_.linkLazyNoProxyJoin_id as linklazy9_28_2_,
- testentity2_.linkLazySelect_id as linklaz11_28_2_,
- testentity2_.linkNoProxyJoin_id as linknop13_28_2_,
- testentity2_.linkSelect_id as linksel15_28_2_,
- testentity2_.name as name2_28_2_,
- testentity2_.version as version3_28_2_,
- testentity3_.link_id as link_id4_28_3_,
- testentity3_.linkJoin_id as linkjoin5_28_3_,
- testentity3_.linkLazy_id as linklazy6_28_3_,
- testentity3_.linkLazyJoin_id as linklazy7_28_3_,
- testentity3_.linkLazyNoProxyJoin_id as linklazy9_28_3_,
- testentity3_.linkLazySelect_id as linklaz11_28_3_,
- testentity3_.linkNoProxyJoin_id as linknop13_28_3_,
- testentity3_.linkSelect_id as linksel15_28_3_,
- testentity3_.name as name2_28_3_,
- testentity3_.version as version3_28_3_,
- testentity4_.link_id as link_id4_28_4_,
- testentity4_.linkJoin_id as linkjoin5_28_4_,
- testentity4_.linkLazy_id as linklazy6_28_4_,
- testentity4_.linkLazyJoin_id as linklazy7_28_4_,
- testentity4_.linkLazyNoProxyJoin_id as linklazy9_28_4_,
- testentity4_.linkLazySelect_id as linklaz11_28_4_,
- testentity4_.linkNoProxyJoin_id as linknop13_28_4_,
- testentity4_.linkSelect_id as linksel15_28_4_,
- testentity4_.name as name2_28_4_,
- testentity4_.version as version3_28_4_,
- testentity5_.link_id as link_id4_28_5_,
- testentity5_.linkJoin_id as linkjoin5_28_5_,
- testentity5_.linkLazy_id as linklazy6_28_5_,
- testentity5_.linkLazyJoin_id as linklazy7_28_5_,
- testentity5_.linkLazyNoProxyJoin_id as linklazy9_28_5_,
- testentity5_.linkLazySelect_id as linklaz11_28_5_,
- testentity5_.linkNoProxyJoin_id as linknop13_28_5_,
- testentity5_.linkSelect_id as linksel15_28_5_,
- testentity5_.name as name2_28_5_,
- testentity5_.version as version3_28_5_,
- testentity6_.link_id as link_id4_28_6_,
- testentity6_.linkJoin_id as linkjoin5_28_6_,
- testentity6_.linkLazy_id as linklazy6_28_6_,
- testentity6_.linkLazyJoin_id as linklazy7_28_6_,
- testentity6_.linkLazyNoProxyJoin_id as linklazy9_28_6_,
- testentity6_.linkLazySelect_id as linklaz11_28_6_,
- testentity6_.linkNoProxyJoin_id as linknop13_28_6_,
- testentity6_.linkSelect_id as linksel15_28_6_,
- testentity6_.name as name2_28_6_,
- testentity6_.version as version3_28_6_,
- testentity7_.link_id as link_id4_28_7_,
- testentity7_.linkJoin_id as linkjoin5_28_7_,
- testentity7_.linkLazy_id as linklazy6_28_7_,
- testentity7_.linkLazyJoin_id as linklazy7_28_7_,
- testentity7_.linkLazyNoProxyJoin_id as linklazy9_28_7_,
- testentity7_.linkLazySelect_id as linklaz11_28_7_,
- testentity7_.linkNoProxyJoin_id as linknop13_28_7_,
- testentity7_.linkSelect_id as linksel15_28_7_,
- testentity7_.name as name2_28_7_,
- testentity7_.version as version3_28_7_,
- testentity8_.link_id as link_id4_28_8_,
- testentity8_.linkJoin_id as linkjoin5_28_8_,
- testentity8_.linkLazy_id as linklazy6_28_8_,
- testentity8_.linkLazyJoin_id as linklazy7_28_8_,
- testentity8_.linkLazyNoProxyJoin_id as linklazy9_28_8_,
- testentity8_.linkLazySelect_id as linklaz11_28_8_,
- testentity8_.linkNoProxyJoin_id as linknop13_28_8_,
- testentity8_.linkSelect_id as linksel15_28_8_,
- testentity8_.name as name2_28_8_,
- testentity8_.version as version3_28_8_,
- testentity9_.link_id as link_id4_28_9_,
- testentity9_.linkJoin_id as linkjoin5_28_9_,
- testentity9_.linkLazy_id as linklazy6_28_9_,
- testentity9_.linkLazyJoin_id as linklazy7_28_9_,
- testentity9_.linkLazyNoProxyJoin_id as linklazy9_28_9_,
- testentity9_.linkLazySelect_id as linklaz11_28_9_,
- testentity9_.linkNoProxyJoin_id as linknop13_28_9_,
- testentity9_.linkSelect_id as linksel15_28_9_,
- testentity9_.name as name2_28_9_,
- testentity9_.version as version3_28_9_,
- testentity10_.link_id as link_id4_28_10_,
- testentity10_.linkJoin_id as linkjoin5_28_10_,
- testentity10_.linkLazy_id as linklazy6_28_10_,
- testentity10_.linkLazyJoin_id as linklazy7_28_10_,
- testentity10_.linkLazyNoProxyJoin_id as linklazy9_28_10_,
- testentity10_.linkLazySelect_id as linklaz11_28_10_,
- testentity10_.linkNoProxyJoin_id as linknop13_28_10_,
- testentity10_.linkSelect_id as linksel15_28_10_,
- testentity10_.name as name2_28_10_,
- testentity10_.version as version3_28_10_,
- testentity11_.link_id as link_id4_28_11_,
- testentity11_.linkJoin_id as linkjoin5_28_11_,
- testentity11_.linkLazy_id as linklazy6_28_11_,
- testentity11_.linkLazyJoin_id as linklazy7_28_11_,
- testentity11_.linkLazyNoProxyJoin_id as linklazy9_28_11_,
- testentity11_.linkLazySelect_id as linklaz11_28_11_,
- testentity11_.linkNoProxyJoin_id as linknop13_28_11_,
- testentity11_.linkSelect_id as linksel15_28_11_,
- testentity11_.name as name2_28_11_,
- testentity11_.version as version3_28_11_,
- testentity12_.link_id as link_id4_28_12_,
- testentity12_.linkJoin_id as linkjoin5_28_12_,
- testentity12_.linkLazy_id as linklazy6_28_12_,
- testentity12_.linkLazyJoin_id as linklazy7_28_12_,
- testentity12_.linkLazyNoProxyJoin_id as linklazy9_28_12_,
- testentity12_.linkLazySelect_id as linklaz11_28_12_,
- testentity12_.linkNoProxyJoin_id as linknop13_28_12_,
- testentity12_.linkSelect_id as linksel15_28_12_,
- testentity12_.name as name2_28_12_,
- testentity12_.version as version3_28_12_
- from
- loading_test testentity0_
- left outer join
- loading_test testentity1_
- on testentity0_.link_id=testentity1_.id
- left outer join
- loading_test testentity2_
- on testentity0_.linkNoProxyJoin_id=testentity2_.id
- left outer join
- loading_test testentity3_
- on testentity0_.linkLazyJoin_id=testentity3_.id
- left outer join
- loading_test testentity4_
- on testentity0_.linkSelect_id=testentity4_.id
- left outer join
- loading_test testentity5_
- on testentity0_.linkLazyNoProxyJoin_id=testentity5_.id
- left outer join
- loading_test testentity6_
- on testentity0_.linkLazyNoProxySelect_id=testentity6_.id
- left outer join
- loading_test testentity7_
- on testentity0_.linkLazySelect_id=testentity7_.id
- left outer join
- loading_test testentity8_
- on testentity0_.linkNoProxy_id=testentity8_.id
- left outer join
- loading_test testentity9_
- on testentity0_.linkLazy_id=testentity9_.id
- left outer join
- loading_test testentity10_
- on testentity0_.linkLazyNoProxy_id=testentity10_.id
- left outer join
- loading_test testentity11_
- on testentity0_.linkJoin_id=testentity11_.id
- left outer join
- loading_test testentity12_
- on testentity0_.linkNoProxySelect_id=testentity12_.id
- where
- testentity0_.id=101
- ######### test.reportInitializationState();
- ######### ================================================================================
- ######### #101:shallow-graph Initialization State
- ######### --------------------------------------------------------------------------------
- ######### link: YES 6/6
- ######### linkJoin: YES 6/6
- ######### linkLazy: YES 6/6
- ######### linkLazyJoin: YES 6/6
- ######### linkLazyNoProxy: n/a 0/6
- ######### linkLazyNoProxyJoin: YES 6/6
- ######### linkLazyNoProxySelect: n/a 0/6
- ######### linkLazySelect: YES 6/6
- ######### linkNoProxy: n/a 0/6
- ######### linkNoProxyJoin: YES 6/6
- ######### linkNoProxySelect: n/a 0/6
- ######### linkSelect: YES 6/6
- ######### --------------------------------------------------------------------------------
- ######### #101:shallow-graph Reflection State
- ######### --------------------------------------------------------------------------------
- ######### link: HERE 6/6
- ######### linkJoin: HERE 6/6
- ######### linkLazy: HERE 6/6
- ######### linkLazyJoin: HERE 6/6
- ######### linkLazyNoProxy: null 0/6
- ######### linkLazyNoProxyJoin: HERE 6/6
- ######### linkLazyNoProxySelect: null 0/6
- ######### linkLazySelect: HERE 6/6
- ######### linkNoProxy: null 0/6
- ######### linkNoProxyJoin: HERE 6/6
- ######### linkNoProxySelect: null 0/6
- ######### linkSelect: HERE 6/6
- ######### ================================================================================
- ######### test.printAll();
- ######### ================================================================================
- ######### #101:shallow-graph
- ######### --------------------------------------------------------------------------------
- ######### link = #1:link
- ######### linkSelect = #2:linkSelect
- ######### linkJoin = #3:linkJoin
- Hibernate:
- select
- testentity_.linkLazyNoProxy_id as linklazy8_28_,
- testentity_.linkLazyNoProxySelect_id as linklaz10_28_,
- testentity_.linkNoProxy_id as linknop12_28_,
- testentity_.linkNoProxySelect_id as linknop14_28_
- from
- loading_test testentity_
- where
- testentity_.id=?
- ######### linkNoProxy = #5:linkNoProxy
- ######### linkNoProxySelect = #6:linkNoProxySelect
- ######### linkNoProxyJoin = #7:linkNoProxyJoin
- ######### linkLazy = #9:linkLazy
- ######### linkLazySelect = #10:linkLazySelect
- ######### linkLazyJoin = #11:linkLazyJoin
- ######### linkLazyNoProxy = #13:linkLazyNoProxy
- ######### linkLazyNoProxySelect = #14:linkLazyNoProxySelect
- ######### linkLazyNoProxyJoin = #15:linkLazyNoProxyJoin
- ######### ================================================================================
- ######### ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ######### ################################################################################
- ######### TEST 102 graph=2/javax.persistence.loadgraph no fetch printAll
- ######### ################################################################################
- ######### final CriteriaQuery<TestEntity> query = builder.createQuery(TestEntity.class);
- ######### final Root<TestEntity> root = query.from(TestEntity.class);
- ######### final Path<Long> id = root.get("id");
- ######### query.where(builder.equal(id, 102L));
- ######### final TypedQuery<TestEntity> tq = session.createQuery(query);
- ######### final String graphText = "link(id), linkSelect(id), linkJoin(id), linkNoProxy(id), linkNoProxySelect(id), linkNoProxyJoin(id), linkLazy(id), linkLazySelect(id), linkLazyJoin(id), linkLazyNoProxy(id), linkLazyNoProxySelect(id), linkLazyNoProxyJoin(id)";
- ######### final RootGraph<TestEntity> entityGraph = GraphParser.parse(TestEntity.class, graphText, session.getEntityManager());
- ######### tq.setHint("javax.persistence.loadgraph", entityGraph);
- ######### final TestEntity test = tq.getSingleResult();
- Hibernate:
- select
- testentity0_.id as id1_28_0_,
- testentity1_.id as id1_28_1_,
- testentity2_.id as id1_28_2_,
- testentity3_.id as id1_28_3_,
- testentity4_.id as id1_28_4_,
- testentity5_.id as id1_28_5_,
- testentity6_.id as id1_28_6_,
- testentity7_.id as id1_28_7_,
- testentity8_.id as id1_28_8_,
- testentity9_.id as id1_28_9_,
- testentity10_.id as id1_28_10_,
- testentity11_.id as id1_28_11_,
- testentity12_.id as id1_28_12_,
- testentity0_.link_id as link_id4_28_0_,
- testentity0_.linkJoin_id as linkjoin5_28_0_,
- testentity0_.linkLazy_id as linklazy6_28_0_,
- testentity0_.linkLazyJoin_id as linklazy7_28_0_,
- testentity0_.linkLazyNoProxyJoin_id as linklazy9_28_0_,
- testentity0_.linkLazySelect_id as linklaz11_28_0_,
- testentity0_.linkNoProxyJoin_id as linknop13_28_0_,
- testentity0_.linkSelect_id as linksel15_28_0_,
- testentity0_.name as name2_28_0_,
- testentity0_.version as version3_28_0_,
- testentity1_.link_id as link_id4_28_1_,
- testentity1_.linkJoin_id as linkjoin5_28_1_,
- testentity1_.linkLazy_id as linklazy6_28_1_,
- testentity1_.linkLazyJoin_id as linklazy7_28_1_,
- testentity1_.linkLazyNoProxyJoin_id as linklazy9_28_1_,
- testentity1_.linkLazySelect_id as linklaz11_28_1_,
- testentity1_.linkNoProxyJoin_id as linknop13_28_1_,
- testentity1_.linkSelect_id as linksel15_28_1_,
- testentity1_.name as name2_28_1_,
- testentity1_.version as version3_28_1_,
- testentity2_.link_id as link_id4_28_2_,
- testentity2_.linkJoin_id as linkjoin5_28_2_,
- testentity2_.linkLazy_id as linklazy6_28_2_,
- testentity2_.linkLazyJoin_id as linklazy7_28_2_,
- testentity2_.linkLazyNoProxyJoin_id as linklazy9_28_2_,
- testentity2_.linkLazySelect_id as linklaz11_28_2_,
- testentity2_.linkNoProxyJoin_id as linknop13_28_2_,
- testentity2_.linkSelect_id as linksel15_28_2_,
- testentity2_.name as name2_28_2_,
- testentity2_.version as version3_28_2_,
- testentity3_.link_id as link_id4_28_3_,
- testentity3_.linkJoin_id as linkjoin5_28_3_,
- testentity3_.linkLazy_id as linklazy6_28_3_,
- testentity3_.linkLazyJoin_id as linklazy7_28_3_,
- testentity3_.linkLazyNoProxyJoin_id as linklazy9_28_3_,
- testentity3_.linkLazySelect_id as linklaz11_28_3_,
- testentity3_.linkNoProxyJoin_id as linknop13_28_3_,
- testentity3_.linkSelect_id as linksel15_28_3_,
- testentity3_.name as name2_28_3_,
- testentity3_.version as version3_28_3_,
- testentity4_.link_id as link_id4_28_4_,
- testentity4_.linkJoin_id as linkjoin5_28_4_,
- testentity4_.linkLazy_id as linklazy6_28_4_,
- testentity4_.linkLazyJoin_id as linklazy7_28_4_,
- testentity4_.linkLazyNoProxyJoin_id as linklazy9_28_4_,
- testentity4_.linkLazySelect_id as linklaz11_28_4_,
- testentity4_.linkNoProxyJoin_id as linknop13_28_4_,
- testentity4_.linkSelect_id as linksel15_28_4_,
- testentity4_.name as name2_28_4_,
- testentity4_.version as version3_28_4_,
- testentity5_.link_id as link_id4_28_5_,
- testentity5_.linkJoin_id as linkjoin5_28_5_,
- testentity5_.linkLazy_id as linklazy6_28_5_,
- testentity5_.linkLazyJoin_id as linklazy7_28_5_,
- testentity5_.linkLazyNoProxyJoin_id as linklazy9_28_5_,
- testentity5_.linkLazySelect_id as linklaz11_28_5_,
- testentity5_.linkNoProxyJoin_id as linknop13_28_5_,
- testentity5_.linkSelect_id as linksel15_28_5_,
- testentity5_.name as name2_28_5_,
- testentity5_.version as version3_28_5_,
- testentity6_.link_id as link_id4_28_6_,
- testentity6_.linkJoin_id as linkjoin5_28_6_,
- testentity6_.linkLazy_id as linklazy6_28_6_,
- testentity6_.linkLazyJoin_id as linklazy7_28_6_,
- testentity6_.linkLazyNoProxyJoin_id as linklazy9_28_6_,
- testentity6_.linkLazySelect_id as linklaz11_28_6_,
- testentity6_.linkNoProxyJoin_id as linknop13_28_6_,
- testentity6_.linkSelect_id as linksel15_28_6_,
- testentity6_.name as name2_28_6_,
- testentity6_.version as version3_28_6_,
- testentity7_.link_id as link_id4_28_7_,
- testentity7_.linkJoin_id as linkjoin5_28_7_,
- testentity7_.linkLazy_id as linklazy6_28_7_,
- testentity7_.linkLazyJoin_id as linklazy7_28_7_,
- testentity7_.linkLazyNoProxyJoin_id as linklazy9_28_7_,
- testentity7_.linkLazySelect_id as linklaz11_28_7_,
- testentity7_.linkNoProxyJoin_id as linknop13_28_7_,
- testentity7_.linkSelect_id as linksel15_28_7_,
- testentity7_.name as name2_28_7_,
- testentity7_.version as version3_28_7_,
- testentity8_.link_id as link_id4_28_8_,
- testentity8_.linkJoin_id as linkjoin5_28_8_,
- testentity8_.linkLazy_id as linklazy6_28_8_,
- testentity8_.linkLazyJoin_id as linklazy7_28_8_,
- testentity8_.linkLazyNoProxyJoin_id as linklazy9_28_8_,
- testentity8_.linkLazySelect_id as linklaz11_28_8_,
- testentity8_.linkNoProxyJoin_id as linknop13_28_8_,
- testentity8_.linkSelect_id as linksel15_28_8_,
- testentity8_.name as name2_28_8_,
- testentity8_.version as version3_28_8_,
- testentity9_.link_id as link_id4_28_9_,
- testentity9_.linkJoin_id as linkjoin5_28_9_,
- testentity9_.linkLazy_id as linklazy6_28_9_,
- testentity9_.linkLazyJoin_id as linklazy7_28_9_,
- testentity9_.linkLazyNoProxyJoin_id as linklazy9_28_9_,
- testentity9_.linkLazySelect_id as linklaz11_28_9_,
- testentity9_.linkNoProxyJoin_id as linknop13_28_9_,
- testentity9_.linkSelect_id as linksel15_28_9_,
- testentity9_.name as name2_28_9_,
- testentity9_.version as version3_28_9_,
- testentity10_.link_id as link_id4_28_10_,
- testentity10_.linkJoin_id as linkjoin5_28_10_,
- testentity10_.linkLazy_id as linklazy6_28_10_,
- testentity10_.linkLazyJoin_id as linklazy7_28_10_,
- testentity10_.linkLazyNoProxyJoin_id as linklazy9_28_10_,
- testentity10_.linkLazySelect_id as linklaz11_28_10_,
- testentity10_.linkNoProxyJoin_id as linknop13_28_10_,
- testentity10_.linkSelect_id as linksel15_28_10_,
- testentity10_.name as name2_28_10_,
- testentity10_.version as version3_28_10_,
- testentity11_.link_id as link_id4_28_11_,
- testentity11_.linkJoin_id as linkjoin5_28_11_,
- testentity11_.linkLazy_id as linklazy6_28_11_,
- testentity11_.linkLazyJoin_id as linklazy7_28_11_,
- testentity11_.linkLazyNoProxyJoin_id as linklazy9_28_11_,
- testentity11_.linkLazySelect_id as linklaz11_28_11_,
- testentity11_.linkNoProxyJoin_id as linknop13_28_11_,
- testentity11_.linkSelect_id as linksel15_28_11_,
- testentity11_.name as name2_28_11_,
- testentity11_.version as version3_28_11_,
- testentity12_.link_id as link_id4_28_12_,
- testentity12_.linkJoin_id as linkjoin5_28_12_,
- testentity12_.linkLazy_id as linklazy6_28_12_,
- testentity12_.linkLazyJoin_id as linklazy7_28_12_,
- testentity12_.linkLazyNoProxyJoin_id as linklazy9_28_12_,
- testentity12_.linkLazySelect_id as linklaz11_28_12_,
- testentity12_.linkNoProxyJoin_id as linknop13_28_12_,
- testentity12_.linkSelect_id as linksel15_28_12_,
- testentity12_.name as name2_28_12_,
- testentity12_.version as version3_28_12_
- from
- loading_test testentity0_
- left outer join
- loading_test testentity1_
- on testentity0_.link_id=testentity1_.id
- left outer join
- loading_test testentity2_
- on testentity0_.linkNoProxyJoin_id=testentity2_.id
- left outer join
- loading_test testentity3_
- on testentity0_.linkLazyJoin_id=testentity3_.id
- left outer join
- loading_test testentity4_
- on testentity0_.linkSelect_id=testentity4_.id
- left outer join
- loading_test testentity5_
- on testentity0_.linkLazyNoProxyJoin_id=testentity5_.id
- left outer join
- loading_test testentity6_
- on testentity0_.linkLazyNoProxySelect_id=testentity6_.id
- left outer join
- loading_test testentity7_
- on testentity0_.linkLazySelect_id=testentity7_.id
- left outer join
- loading_test testentity8_
- on testentity0_.linkNoProxy_id=testentity8_.id
- left outer join
- loading_test testentity9_
- on testentity0_.linkLazy_id=testentity9_.id
- left outer join
- loading_test testentity10_
- on testentity0_.linkLazyNoProxy_id=testentity10_.id
- left outer join
- loading_test testentity11_
- on testentity0_.linkJoin_id=testentity11_.id
- left outer join
- loading_test testentity12_
- on testentity0_.linkNoProxySelect_id=testentity12_.id
- where
- testentity0_.id=102
- ######### test.reportInitializationState();
- ######### ================================================================================
- ######### #102:id-graph Initialization State
- ######### --------------------------------------------------------------------------------
- ######### link: YES 7/7
- ######### linkJoin: YES 7/7
- ######### linkLazy: YES 7/7
- ######### linkLazyJoin: YES 7/7
- ######### linkLazyNoProxy: n/a 0/7
- ######### linkLazyNoProxyJoin: YES 7/7
- ######### linkLazyNoProxySelect: n/a 0/7
- ######### linkLazySelect: YES 7/7
- ######### linkNoProxy: n/a 0/7
- ######### linkNoProxyJoin: YES 7/7
- ######### linkNoProxySelect: n/a 0/7
- ######### linkSelect: YES 7/7
- ######### --------------------------------------------------------------------------------
- ######### #102:id-graph Reflection State
- ######### --------------------------------------------------------------------------------
- ######### link: HERE 7/7
- ######### linkJoin: HERE 7/7
- ######### linkLazy: HERE 7/7
- ######### linkLazyJoin: HERE 7/7
- ######### linkLazyNoProxy: null 0/7
- ######### linkLazyNoProxyJoin: HERE 7/7
- ######### linkLazyNoProxySelect: null 0/7
- ######### linkLazySelect: HERE 7/7
- ######### linkNoProxy: null 0/7
- ######### linkNoProxyJoin: HERE 7/7
- ######### linkNoProxySelect: null 0/7
- ######### linkSelect: HERE 7/7
- ######### ================================================================================
- ######### test.printAll();
- ######### ================================================================================
- ######### #102:id-graph
- ######### --------------------------------------------------------------------------------
- ######### link = #1:link
- ######### linkSelect = #2:linkSelect
- ######### linkJoin = #3:linkJoin
- Hibernate:
- select
- testentity_.linkLazyNoProxy_id as linklazy8_28_,
- testentity_.linkLazyNoProxySelect_id as linklaz10_28_,
- testentity_.linkNoProxy_id as linknop12_28_,
- testentity_.linkNoProxySelect_id as linknop14_28_
- from
- loading_test testentity_
- where
- testentity_.id=?
- ######### linkNoProxy = #5:linkNoProxy
- ######### linkNoProxySelect = #6:linkNoProxySelect
- ######### linkNoProxyJoin = #7:linkNoProxyJoin
- ######### linkLazy = #9:linkLazy
- ######### linkLazySelect = #10:linkLazySelect
- ######### linkLazyJoin = #11:linkLazyJoin
- ######### linkLazyNoProxy = #13:linkLazyNoProxy
- ######### linkLazyNoProxySelect = #14:linkLazyNoProxySelect
- ######### linkLazyNoProxyJoin = #15:linkLazyNoProxyJoin
- ######### ================================================================================
- ######### ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ######### ################################################################################
- ######### TEST 103 graph=3/javax.persistence.loadgraph no fetch printAll
- ######### ################################################################################
- ######### final CriteriaQuery<TestEntity> query = builder.createQuery(TestEntity.class);
- ######### final Root<TestEntity> root = query.from(TestEntity.class);
- ######### final Path<Long> id = root.get("id");
- ######### query.where(builder.equal(id, 103L));
- ######### final TypedQuery<TestEntity> tq = session.createQuery(query);
- ######### final String graphText = "link(id, name), linkSelect(id, name), linkJoin(id, name), linkNoProxy(id, name), linkNoProxySelect(id, name), linkNoProxyJoin(id, name), linkLazy(id, name), linkLazySelect(id, name), linkLazyJoin(id, name), linkLazyNoProxy(id, name), linkLazyNoProxySelect(id, name), linkLazyNoProxyJoin(id, name)";
- ######### final RootGraph<TestEntity> entityGraph = GraphParser.parse(TestEntity.class, graphText, session.getEntityManager());
- ######### tq.setHint("javax.persistence.loadgraph", entityGraph);
- ######### final TestEntity test = tq.getSingleResult();
- Hibernate:
- select
- testentity0_.id as id1_28_0_,
- testentity1_.id as id1_28_1_,
- testentity2_.id as id1_28_2_,
- testentity3_.id as id1_28_3_,
- testentity4_.id as id1_28_4_,
- testentity5_.id as id1_28_5_,
- testentity6_.id as id1_28_6_,
- testentity7_.id as id1_28_7_,
- testentity8_.id as id1_28_8_,
- testentity9_.id as id1_28_9_,
- testentity10_.id as id1_28_10_,
- testentity11_.id as id1_28_11_,
- testentity12_.id as id1_28_12_,
- testentity0_.link_id as link_id4_28_0_,
- testentity0_.linkJoin_id as linkjoin5_28_0_,
- testentity0_.linkLazy_id as linklazy6_28_0_,
- testentity0_.linkLazyJoin_id as linklazy7_28_0_,
- testentity0_.linkLazyNoProxyJoin_id as linklazy9_28_0_,
- testentity0_.linkLazySelect_id as linklaz11_28_0_,
- testentity0_.linkNoProxyJoin_id as linknop13_28_0_,
- testentity0_.linkSelect_id as linksel15_28_0_,
- testentity0_.name as name2_28_0_,
- testentity0_.version as version3_28_0_,
- testentity1_.link_id as link_id4_28_1_,
- testentity1_.linkJoin_id as linkjoin5_28_1_,
- testentity1_.linkLazy_id as linklazy6_28_1_,
- testentity1_.linkLazyJoin_id as linklazy7_28_1_,
- testentity1_.linkLazyNoProxyJoin_id as linklazy9_28_1_,
- testentity1_.linkLazySelect_id as linklaz11_28_1_,
- testentity1_.linkNoProxyJoin_id as linknop13_28_1_,
- testentity1_.linkSelect_id as linksel15_28_1_,
- testentity1_.name as name2_28_1_,
- testentity1_.version as version3_28_1_,
- testentity2_.link_id as link_id4_28_2_,
- testentity2_.linkJoin_id as linkjoin5_28_2_,
- testentity2_.linkLazy_id as linklazy6_28_2_,
- testentity2_.linkLazyJoin_id as linklazy7_28_2_,
- testentity2_.linkLazyNoProxyJoin_id as linklazy9_28_2_,
- testentity2_.linkLazySelect_id as linklaz11_28_2_,
- testentity2_.linkNoProxyJoin_id as linknop13_28_2_,
- testentity2_.linkSelect_id as linksel15_28_2_,
- testentity2_.name as name2_28_2_,
- testentity2_.version as version3_28_2_,
- testentity3_.link_id as link_id4_28_3_,
- testentity3_.linkJoin_id as linkjoin5_28_3_,
- testentity3_.linkLazy_id as linklazy6_28_3_,
- testentity3_.linkLazyJoin_id as linklazy7_28_3_,
- testentity3_.linkLazyNoProxyJoin_id as linklazy9_28_3_,
- testentity3_.linkLazySelect_id as linklaz11_28_3_,
- testentity3_.linkNoProxyJoin_id as linknop13_28_3_,
- testentity3_.linkSelect_id as linksel15_28_3_,
- testentity3_.name as name2_28_3_,
- testentity3_.version as version3_28_3_,
- testentity4_.link_id as link_id4_28_4_,
- testentity4_.linkJoin_id as linkjoin5_28_4_,
- testentity4_.linkLazy_id as linklazy6_28_4_,
- testentity4_.linkLazyJoin_id as linklazy7_28_4_,
- testentity4_.linkLazyNoProxyJoin_id as linklazy9_28_4_,
- testentity4_.linkLazySelect_id as linklaz11_28_4_,
- testentity4_.linkNoProxyJoin_id as linknop13_28_4_,
- testentity4_.linkSelect_id as linksel15_28_4_,
- testentity4_.name as name2_28_4_,
- testentity4_.version as version3_28_4_,
- testentity5_.link_id as link_id4_28_5_,
- testentity5_.linkJoin_id as linkjoin5_28_5_,
- testentity5_.linkLazy_id as linklazy6_28_5_,
- testentity5_.linkLazyJoin_id as linklazy7_28_5_,
- testentity5_.linkLazyNoProxyJoin_id as linklazy9_28_5_,
- testentity5_.linkLazySelect_id as linklaz11_28_5_,
- testentity5_.linkNoProxyJoin_id as linknop13_28_5_,
- testentity5_.linkSelect_id as linksel15_28_5_,
- testentity5_.name as name2_28_5_,
- testentity5_.version as version3_28_5_,
- testentity6_.link_id as link_id4_28_6_,
- testentity6_.linkJoin_id as linkjoin5_28_6_,
- testentity6_.linkLazy_id as linklazy6_28_6_,
- testentity6_.linkLazyJoin_id as linklazy7_28_6_,
- testentity6_.linkLazyNoProxyJoin_id as linklazy9_28_6_,
- testentity6_.linkLazySelect_id as linklaz11_28_6_,
- testentity6_.linkNoProxyJoin_id as linknop13_28_6_,
- testentity6_.linkSelect_id as linksel15_28_6_,
- testentity6_.name as name2_28_6_,
- testentity6_.version as version3_28_6_,
- testentity7_.link_id as link_id4_28_7_,
- testentity7_.linkJoin_id as linkjoin5_28_7_,
- testentity7_.linkLazy_id as linklazy6_28_7_,
- testentity7_.linkLazyJoin_id as linklazy7_28_7_,
- testentity7_.linkLazyNoProxyJoin_id as linklazy9_28_7_,
- testentity7_.linkLazySelect_id as linklaz11_28_7_,
- testentity7_.linkNoProxyJoin_id as linknop13_28_7_,
- testentity7_.linkSelect_id as linksel15_28_7_,
- testentity7_.name as name2_28_7_,
- testentity7_.version as version3_28_7_,
- testentity8_.link_id as link_id4_28_8_,
- testentity8_.linkJoin_id as linkjoin5_28_8_,
- testentity8_.linkLazy_id as linklazy6_28_8_,
- testentity8_.linkLazyJoin_id as linklazy7_28_8_,
- testentity8_.linkLazyNoProxyJoin_id as linklazy9_28_8_,
- testentity8_.linkLazySelect_id as linklaz11_28_8_,
- testentity8_.linkNoProxyJoin_id as linknop13_28_8_,
- testentity8_.linkSelect_id as linksel15_28_8_,
- testentity8_.name as name2_28_8_,
- testentity8_.version as version3_28_8_,
- testentity9_.link_id as link_id4_28_9_,
- testentity9_.linkJoin_id as linkjoin5_28_9_,
- testentity9_.linkLazy_id as linklazy6_28_9_,
- testentity9_.linkLazyJoin_id as linklazy7_28_9_,
- testentity9_.linkLazyNoProxyJoin_id as linklazy9_28_9_,
- testentity9_.linkLazySelect_id as linklaz11_28_9_,
- testentity9_.linkNoProxyJoin_id as linknop13_28_9_,
- testentity9_.linkSelect_id as linksel15_28_9_,
- testentity9_.name as name2_28_9_,
- testentity9_.version as version3_28_9_,
- testentity10_.link_id as link_id4_28_10_,
- testentity10_.linkJoin_id as linkjoin5_28_10_,
- testentity10_.linkLazy_id as linklazy6_28_10_,
- testentity10_.linkLazyJoin_id as linklazy7_28_10_,
- testentity10_.linkLazyNoProxyJoin_id as linklazy9_28_10_,
- testentity10_.linkLazySelect_id as linklaz11_28_10_,
- testentity10_.linkNoProxyJoin_id as linknop13_28_10_,
- testentity10_.linkSelect_id as linksel15_28_10_,
- testentity10_.name as name2_28_10_,
- testentity10_.version as version3_28_10_,
- testentity11_.link_id as link_id4_28_11_,
- testentity11_.linkJoin_id as linkjoin5_28_11_,
- testentity11_.linkLazy_id as linklazy6_28_11_,
- testentity11_.linkLazyJoin_id as linklazy7_28_11_,
- testentity11_.linkLazyNoProxyJoin_id as linklazy9_28_11_,
- testentity11_.linkLazySelect_id as linklaz11_28_11_,
- testentity11_.linkNoProxyJoin_id as linknop13_28_11_,
- testentity11_.linkSelect_id as linksel15_28_11_,
- testentity11_.name as name2_28_11_,
- testentity11_.version as version3_28_11_,
- testentity12_.link_id as link_id4_28_12_,
- testentity12_.linkJoin_id as linkjoin5_28_12_,
- testentity12_.linkLazy_id as linklazy6_28_12_,
- testentity12_.linkLazyJoin_id as linklazy7_28_12_,
- testentity12_.linkLazyNoProxyJoin_id as linklazy9_28_12_,
- testentity12_.linkLazySelect_id as linklaz11_28_12_,
- testentity12_.linkNoProxyJoin_id as linknop13_28_12_,
- testentity12_.linkSelect_id as linksel15_28_12_,
- testentity12_.name as name2_28_12_,
- testentity12_.version as version3_28_12_
- from
- loading_test testentity0_
- left outer join
- loading_test testentity1_
- on testentity0_.link_id=testentity1_.id
- left outer join
- loading_test testentity2_
- on testentity0_.linkNoProxyJoin_id=testentity2_.id
- left outer join
- loading_test testentity3_
- on testentity0_.linkLazyJoin_id=testentity3_.id
- left outer join
- loading_test testentity4_
- on testentity0_.linkSelect_id=testentity4_.id
- left outer join
- loading_test testentity5_
- on testentity0_.linkLazyNoProxyJoin_id=testentity5_.id
- left outer join
- loading_test testentity6_
- on testentity0_.linkLazyNoProxySelect_id=testentity6_.id
- left outer join
- loading_test testentity7_
- on testentity0_.linkLazySelect_id=testentity7_.id
- left outer join
- loading_test testentity8_
- on testentity0_.linkNoProxy_id=testentity8_.id
- left outer join
- loading_test testentity9_
- on testentity0_.linkLazy_id=testentity9_.id
- left outer join
- loading_test testentity10_
- on testentity0_.linkLazyNoProxy_id=testentity10_.id
- left outer join
- loading_test testentity11_
- on testentity0_.linkJoin_id=testentity11_.id
- left outer join
- loading_test testentity12_
- on testentity0_.linkNoProxySelect_id=testentity12_.id
- where
- testentity0_.id=103
- ######### test.reportInitializationState();
- ######### ================================================================================
- ######### #103:id-name-graph Initialization State
- ######### --------------------------------------------------------------------------------
- ######### link: YES 8/8
- ######### linkJoin: YES 8/8
- ######### linkLazy: YES 8/8
- ######### linkLazyJoin: YES 8/8
- ######### linkLazyNoProxy: n/a 0/8
- ######### linkLazyNoProxyJoin: YES 8/8
- ######### linkLazyNoProxySelect: n/a 0/8
- ######### linkLazySelect: YES 8/8
- ######### linkNoProxy: n/a 0/8
- ######### linkNoProxyJoin: YES 8/8
- ######### linkNoProxySelect: n/a 0/8
- ######### linkSelect: YES 8/8
- ######### --------------------------------------------------------------------------------
- ######### #103:id-name-graph Reflection State
- ######### --------------------------------------------------------------------------------
- ######### link: HERE 8/8
- ######### linkJoin: HERE 8/8
- ######### linkLazy: HERE 8/8
- ######### linkLazyJoin: HERE 8/8
- ######### linkLazyNoProxy: null 0/8
- ######### linkLazyNoProxyJoin: HERE 8/8
- ######### linkLazyNoProxySelect: null 0/8
- ######### linkLazySelect: HERE 8/8
- ######### linkNoProxy: null 0/8
- ######### linkNoProxyJoin: HERE 8/8
- ######### linkNoProxySelect: null 0/8
- ######### linkSelect: HERE 8/8
- ######### ================================================================================
- ######### test.printAll();
- ######### ================================================================================
- ######### #103:id-name-graph
- ######### --------------------------------------------------------------------------------
- ######### link = #1:link
- ######### linkSelect = #2:linkSelect
- ######### linkJoin = #3:linkJoin
- Hibernate:
- select
- testentity_.linkLazyNoProxy_id as linklazy8_28_,
- testentity_.linkLazyNoProxySelect_id as linklaz10_28_,
- testentity_.linkNoProxy_id as linknop12_28_,
- testentity_.linkNoProxySelect_id as linknop14_28_
- from
- loading_test testentity_
- where
- testentity_.id=?
- ######### linkNoProxy = #5:linkNoProxy
- ######### linkNoProxySelect = #6:linkNoProxySelect
- ######### linkNoProxyJoin = #7:linkNoProxyJoin
- ######### linkLazy = #9:linkLazy
- ######### linkLazySelect = #10:linkLazySelect
- ######### linkLazyJoin = #11:linkLazyJoin
- ######### linkLazyNoProxy = #13:linkLazyNoProxy
- ######### linkLazyNoProxySelect = #14:linkLazyNoProxySelect
- ######### linkLazyNoProxyJoin = #15:linkLazyNoProxyJoin
- ######### ================================================================================
- ######### ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ######### ################################################################################
- ######### TEST 200 no graph no fetch printAll
- ######### ################################################################################
- ######### final CriteriaQuery<TestEntity> query = builder.createQuery(TestEntity.class);
- ######### final Root<TestEntity> root = query.from(TestEntity.class);
- ######### final Path<Long> id = root.get("id");
- ######### query.where(builder.equal(id, 200L));
- ######### final TypedQuery<TestEntity> tq = session.createQuery(query);
- ######### final TestEntity test = tq.getSingleResult();
- Hibernate:
- select
- testentity0_.id as id1_28_,
- testentity0_.link_id as link_id4_28_,
- testentity0_.linkJoin_id as linkjoin5_28_,
- testentity0_.linkLazy_id as linklazy6_28_,
- testentity0_.linkLazyJoin_id as linklazy7_28_,
- testentity0_.linkLazyNoProxyJoin_id as linklazy9_28_,
- testentity0_.linkLazySelect_id as linklaz11_28_,
- testentity0_.linkNoProxyJoin_id as linknop13_28_,
- testentity0_.linkSelect_id as linksel15_28_,
- testentity0_.name as name2_28_,
- testentity0_.version as version3_28_
- from
- loading_test testentity0_
- where
- testentity0_.id=200
- Hibernate:
- select
- testentity0_.id as id1_28_0_,
- testentity0_.link_id as link_id4_28_0_,
- testentity0_.linkJoin_id as linkjoin5_28_0_,
- testentity0_.linkLazy_id as linklazy6_28_0_,
- testentity0_.linkLazyJoin_id as linklazy7_28_0_,
- testentity0_.linkLazyNoProxyJoin_id as linklazy9_28_0_,
- testentity0_.linkLazySelect_id as linklaz11_28_0_,
- testentity0_.linkNoProxyJoin_id as linknop13_28_0_,
- testentity0_.linkSelect_id as linksel15_28_0_,
- testentity0_.name as name2_28_0_,
- testentity0_.version as version3_28_0_,
- testentity1_.id as id1_28_1_,
- testentity1_.link_id as link_id4_28_1_,
- testentity1_.linkJoin_id as linkjoin5_28_1_,
- testentity1_.linkLazy_id as linklazy6_28_1_,
- testentity1_.linkLazyJoin_id as linklazy7_28_1_,
- testentity1_.linkLazyNoProxyJoin_id as linklazy9_28_1_,
- testentity1_.linkLazySelect_id as linklaz11_28_1_,
- testentity1_.linkNoProxyJoin_id as linknop13_28_1_,
- testentity1_.linkSelect_id as linksel15_28_1_,
- testentity1_.name as name2_28_1_,
- testentity1_.version as version3_28_1_,
- testentity2_.id as id1_28_2_,
- testentity2_.link_id as link_id4_28_2_,
- testentity2_.linkJoin_id as linkjoin5_28_2_,
- testentity2_.linkLazy_id as linklazy6_28_2_,
- testentity2_.linkLazyJoin_id as linklazy7_28_2_,
- testentity2_.linkLazyNoProxyJoin_id as linklazy9_28_2_,
- testentity2_.linkLazySelect_id as linklaz11_28_2_,
- testentity2_.linkNoProxyJoin_id as linknop13_28_2_,
- testentity2_.linkSelect_id as linksel15_28_2_,
- testentity2_.name as name2_28_2_,
- testentity2_.version as version3_28_2_,
- testentity3_.id as id1_28_3_,
- testentity3_.link_id as link_id4_28_3_,
- testentity3_.linkJoin_id as linkjoin5_28_3_,
- testentity3_.linkLazy_id as linklazy6_28_3_,
- testentity3_.linkLazyJoin_id as linklazy7_28_3_,
- testentity3_.linkLazyNoProxyJoin_id as linklazy9_28_3_,
- testentity3_.linkLazySelect_id as linklaz11_28_3_,
- testentity3_.linkNoProxyJoin_id as linknop13_28_3_,
- testentity3_.linkSelect_id as linksel15_28_3_,
- testentity3_.name as name2_28_3_,
- testentity3_.version as version3_28_3_,
- testentity4_.id as id1_28_4_,
- testentity4_.link_id as link_id4_28_4_,
- testentity4_.linkJoin_id as linkjoin5_28_4_,
- testentity4_.linkLazy_id as linklazy6_28_4_,
- testentity4_.linkLazyJoin_id as linklazy7_28_4_,
- testentity4_.linkLazyNoProxyJoin_id as linklazy9_28_4_,
- testentity4_.linkLazySelect_id as linklaz11_28_4_,
- testentity4_.linkNoProxyJoin_id as linknop13_28_4_,
- testentity4_.linkSelect_id as linksel15_28_4_,
- testentity4_.name as name2_28_4_,
- testentity4_.version as version3_28_4_,
- testentity5_.id as id1_28_5_,
- testentity5_.link_id as link_id4_28_5_,
- testentity5_.linkJoin_id as linkjoin5_28_5_,
- testentity5_.linkLazy_id as linklazy6_28_5_,
- testentity5_.linkLazyJoin_id as linklazy7_28_5_,
- testentity5_.linkLazyNoProxyJoin_id as linklazy9_28_5_,
- testentity5_.linkLazySelect_id as linklaz11_28_5_,
- testentity5_.linkNoProxyJoin_id as linknop13_28_5_,
- testentity5_.linkSelect_id as linksel15_28_5_,
- testentity5_.name as name2_28_5_,
- testentity5_.version as version3_28_5_,
- testentity6_.id as id1_28_6_,
- testentity6_.link_id as link_id4_28_6_,
- testentity6_.linkJoin_id as linkjoin5_28_6_,
- testentity6_.linkLazy_id as linklazy6_28_6_,
- testentity6_.linkLazyJoin_id as linklazy7_28_6_,
- testentity6_.linkLazyNoProxyJoin_id as linklazy9_28_6_,
- testentity6_.linkLazySelect_id as linklaz11_28_6_,
- testentity6_.linkNoProxyJoin_id as linknop13_28_6_,
- testentity6_.linkSelect_id as linksel15_28_6_,
- testentity6_.name as name2_28_6_,
- testentity6_.version as version3_28_6_
- from
- loading_test testentity0_
- left outer join
- loading_test testentity1_
- on testentity0_.link_id=testentity1_.id
- left outer join
- loading_test testentity2_
- on testentity1_.linkJoin_id=testentity2_.id
- left outer join
- loading_test testentity3_
- on testentity2_.linkLazyJoin_id=testentity3_.id
- left outer join
- loading_test testentity4_
- on testentity3_.linkLazyNoProxyJoin_id=testentity4_.id
- left outer join
- loading_test testentity5_
- on testentity4_.linkNoProxy_id=testentity5_.id
- left outer join
- loading_test testentity6_
- on testentity5_.linkNoProxyJoin_id=testentity6_.id
- where
- testentity0_.id in (
- ?, ?, ?, ?, ?, ?, ?, ?
- )
- ######### test.reportInitializationState();
- ######### ================================================================================
- ######### #200:no-fetch Initialization State
- ######### --------------------------------------------------------------------------------
- ######### link: YES 9/9
- ######### linkJoin: YES 9/9
- ######### linkLazy: YES 9/9
- ######### linkLazyJoin: YES 9/9
- ######### linkLazyNoProxy: n/a 0/9
- ######### linkLazyNoProxyJoin: YES 9/9
- ######### linkLazyNoProxySelect: n/a 0/9
- ######### linkLazySelect: YES 9/9
- ######### linkNoProxy: n/a 0/9
- ######### linkNoProxyJoin: YES 9/9
- ######### linkNoProxySelect: n/a 0/9
- ######### linkSelect: YES 9/9
- ######### --------------------------------------------------------------------------------
- ######### #200:no-fetch Reflection State
- ######### --------------------------------------------------------------------------------
- ######### link: HERE 9/9
- ######### linkJoin: HERE 9/9
- ######### linkLazy: HERE 9/9
- ######### linkLazyJoin: HERE 9/9
- ######### linkLazyNoProxy: null 0/9
- ######### linkLazyNoProxyJoin: HERE 9/9
- ######### linkLazyNoProxySelect: null 0/9
- ######### linkLazySelect: HERE 9/9
- ######### linkNoProxy: null 0/9
- ######### linkNoProxyJoin: HERE 9/9
- ######### linkNoProxySelect: null 0/9
- ######### linkSelect: HERE 9/9
- ######### ================================================================================
- ######### test.printAll();
- ######### ================================================================================
- ######### #200:no-fetch
- ######### --------------------------------------------------------------------------------
- ######### link = #1:link
- ######### linkSelect = #2:linkSelect
- ######### linkJoin = #3:linkJoin
- Hibernate:
- select
- testentity_.linkLazyNoProxy_id as linklazy8_28_,
- testentity_.linkLazyNoProxySelect_id as linklaz10_28_,
- testentity_.linkNoProxy_id as linknop12_28_,
- testentity_.linkNoProxySelect_id as linknop14_28_
- from
- loading_test testentity_
- where
- testentity_.id=?
- Hibernate:
- select
- testentity0_.id as id1_28_0_,
- testentity0_.link_id as link_id4_28_0_,
- testentity0_.linkJoin_id as linkjoin5_28_0_,
- testentity0_.linkLazy_id as linklazy6_28_0_,
- testentity0_.linkLazyJoin_id as linklazy7_28_0_,
- testentity0_.linkLazyNoProxyJoin_id as linklazy9_28_0_,
- testentity0_.linkLazySelect_id as linklaz11_28_0_,
- testentity0_.linkNoProxyJoin_id as linknop13_28_0_,
- testentity0_.linkSelect_id as linksel15_28_0_,
- testentity0_.name as name2_28_0_,
- testentity0_.version as version3_28_0_,
- testentity1_.id as id1_28_1_,
- testentity1_.link_id as link_id4_28_1_,
- testentity1_.linkJoin_id as linkjoin5_28_1_,
- testentity1_.linkLazy_id as linklazy6_28_1_,
- testentity1_.linkLazyJoin_id as linklazy7_28_1_,
- testentity1_.linkLazyNoProxyJoin_id as linklazy9_28_1_,
- testentity1_.linkLazySelect_id as linklaz11_28_1_,
- testentity1_.linkNoProxyJoin_id as linknop13_28_1_,
- testentity1_.linkSelect_id as linksel15_28_1_,
- testentity1_.name as name2_28_1_,
- testentity1_.version as version3_28_1_,
- testentity2_.id as id1_28_2_,
- testentity2_.link_id as link_id4_28_2_,
- testentity2_.linkJoin_id as linkjoin5_28_2_,
- testentity2_.linkLazy_id as linklazy6_28_2_,
- testentity2_.linkLazyJoin_id as linklazy7_28_2_,
- testentity2_.linkLazyNoProxyJoin_id as linklazy9_28_2_,
- testentity2_.linkLazySelect_id as linklaz11_28_2_,
- testentity2_.linkNoProxyJoin_id as linknop13_28_2_,
- testentity2_.linkSelect_id as linksel15_28_2_,
- testentity2_.name as name2_28_2_,
- testentity2_.version as version3_28_2_,
- testentity3_.id as id1_28_3_,
- testentity3_.link_id as link_id4_28_3_,
- testentity3_.linkJoin_id as linkjoin5_28_3_,
- testentity3_.linkLazy_id as linklazy6_28_3_,
- testentity3_.linkLazyJoin_id as linklazy7_28_3_,
- testentity3_.linkLazyNoProxyJoin_id as linklazy9_28_3_,
- testentity3_.linkLazySelect_id as linklaz11_28_3_,
- testentity3_.linkNoProxyJoin_id as linknop13_28_3_,
- testentity3_.linkSelect_id as linksel15_28_3_,
- testentity3_.name as name2_28_3_,
- testentity3_.version as version3_28_3_,
- testentity4_.id as id1_28_4_,
- testentity4_.link_id as link_id4_28_4_,
- testentity4_.linkJoin_id as linkjoin5_28_4_,
- testentity4_.linkLazy_id as linklazy6_28_4_,
- testentity4_.linkLazyJoin_id as linklazy7_28_4_,
- testentity4_.linkLazyNoProxyJoin_id as linklazy9_28_4_,
- testentity4_.linkLazySelect_id as linklaz11_28_4_,
- testentity4_.linkNoProxyJoin_id as linknop13_28_4_,
- testentity4_.linkSelect_id as linksel15_28_4_,
- testentity4_.name as name2_28_4_,
- testentity4_.version as version3_28_4_,
- testentity5_.id as id1_28_5_,
- testentity5_.link_id as link_id4_28_5_,
- testentity5_.linkJoin_id as linkjoin5_28_5_,
- testentity5_.linkLazy_id as linklazy6_28_5_,
- testentity5_.linkLazyJoin_id as linklazy7_28_5_,
- testentity5_.linkLazyNoProxyJoin_id as linklazy9_28_5_,
- testentity5_.linkLazySelect_id as linklaz11_28_5_,
- testentity5_.linkNoProxyJoin_id as linknop13_28_5_,
- testentity5_.linkSelect_id as linksel15_28_5_,
- testentity5_.name as name2_28_5_,
- testentity5_.version as version3_28_5_,
- testentity6_.id as id1_28_6_,
- testentity6_.link_id as link_id4_28_6_,
- testentity6_.linkJoin_id as linkjoin5_28_6_,
- testentity6_.linkLazy_id as linklazy6_28_6_,
- testentity6_.linkLazyJoin_id as linklazy7_28_6_,
- testentity6_.linkLazyNoProxyJoin_id as linklazy9_28_6_,
- testentity6_.linkLazySelect_id as linklaz11_28_6_,
- testentity6_.linkNoProxyJoin_id as linknop13_28_6_,
- testentity6_.linkSelect_id as linksel15_28_6_,
- testentity6_.name as name2_28_6_,
- testentity6_.version as version3_28_6_
- from
- loading_test testentity0_
- left outer join
- loading_test testentity1_
- on testentity0_.link_id=testentity1_.id
- left outer join
- loading_test testentity2_
- on testentity1_.linkJoin_id=testentity2_.id
- left outer join
- loading_test testentity3_
- on testentity2_.linkLazyJoin_id=testentity3_.id
- left outer join
- loading_test testentity4_
- on testentity3_.linkLazyNoProxyJoin_id=testentity4_.id
- left outer join
- loading_test testentity5_
- on testentity4_.linkNoProxy_id=testentity5_.id
- left outer join
- loading_test testentity6_
- on testentity5_.linkNoProxyJoin_id=testentity6_.id
- where
- testentity0_.id=?
- Hibernate:
- select
- testentity0_.id as id1_28_0_,
- testentity0_.link_id as link_id4_28_0_,
- testentity0_.linkJoin_id as linkjoin5_28_0_,
- testentity0_.linkLazy_id as linklazy6_28_0_,
- testentity0_.linkLazyJoin_id as linklazy7_28_0_,
- testentity0_.linkLazyNoProxyJoin_id as linklazy9_28_0_,
- testentity0_.linkLazySelect_id as linklaz11_28_0_,
- testentity0_.linkNoProxyJoin_id as linknop13_28_0_,
- testentity0_.linkSelect_id as linksel15_28_0_,
- testentity0_.name as name2_28_0_,
- testentity0_.version as version3_28_0_,
- testentity1_.id as id1_28_1_,
- testentity1_.link_id as link_id4_28_1_,
- testentity1_.linkJoin_id as linkjoin5_28_1_,
- testentity1_.linkLazy_id as linklazy6_28_1_,
- testentity1_.linkLazyJoin_id as linklazy7_28_1_,
- testentity1_.linkLazyNoProxyJoin_id as linklazy9_28_1_,
- testentity1_.linkLazySelect_id as linklaz11_28_1_,
- testentity1_.linkNoProxyJoin_id as linknop13_28_1_,
- testentity1_.linkSelect_id as linksel15_28_1_,
- testentity1_.name as name2_28_1_,
- testentity1_.version as version3_28_1_,
- testentity2_.id as id1_28_2_,
- testentity2_.link_id as link_id4_28_2_,
- testentity2_.linkJoin_id as linkjoin5_28_2_,
- testentity2_.linkLazy_id as linklazy6_28_2_,
- testentity2_.linkLazyJoin_id as linklazy7_28_2_,
- testentity2_.linkLazyNoProxyJoin_id as linklazy9_28_2_,
- testentity2_.linkLazySelect_id as linklaz11_28_2_,
- testentity2_.linkNoProxyJoin_id as linknop13_28_2_,
- testentity2_.linkSelect_id as linksel15_28_2_,
- testentity2_.name as name2_28_2_,
- testentity2_.version as version3_28_2_,
- testentity3_.id as id1_28_3_,
- testentity3_.link_id as link_id4_28_3_,
- testentity3_.linkJoin_id as linkjoin5_28_3_,
- testentity3_.linkLazy_id as linklazy6_28_3_,
- testentity3_.linkLazyJoin_id as linklazy7_28_3_,
- testentity3_.linkLazyNoProxyJoin_id as linklazy9_28_3_,
- testentity3_.linkLazySelect_id as linklaz11_28_3_,
- testentity3_.linkNoProxyJoin_id as linknop13_28_3_,
- testentity3_.linkSelect_id as linksel15_28_3_,
- testentity3_.name as name2_28_3_,
- testentity3_.version as version3_28_3_,
- testentity4_.id as id1_28_4_,
- testentity4_.link_id as link_id4_28_4_,
- testentity4_.linkJoin_id as linkjoin5_28_4_,
- testentity4_.linkLazy_id as linklazy6_28_4_,
- testentity4_.linkLazyJoin_id as linklazy7_28_4_,
- testentity4_.linkLazyNoProxyJoin_id as linklazy9_28_4_,
- testentity4_.linkLazySelect_id as linklaz11_28_4_,
- testentity4_.linkNoProxyJoin_id as linknop13_28_4_,
- testentity4_.linkSelect_id as linksel15_28_4_,
- testentity4_.name as name2_28_4_,
- testentity4_.version as version3_28_4_,
- testentity5_.id as id1_28_5_,
- testentity5_.link_id as link_id4_28_5_,
- testentity5_.linkJoin_id as linkjoin5_28_5_,
- testentity5_.linkLazy_id as linklazy6_28_5_,
- testentity5_.linkLazyJoin_id as linklazy7_28_5_,
- testentity5_.linkLazyNoProxyJoin_id as linklazy9_28_5_,
- testentity5_.linkLazySelect_id as linklaz11_28_5_,
- testentity5_.linkNoProxyJoin_id as linknop13_28_5_,
- testentity5_.linkSelect_id as linksel15_28_5_,
- testentity5_.name as name2_28_5_,
- testentity5_.version as version3_28_5_,
- testentity6_.id as id1_28_6_,
- testentity6_.link_id as link_id4_28_6_,
- testentity6_.linkJoin_id as linkjoin5_28_6_,
- testentity6_.linkLazy_id as linklazy6_28_6_,
- testentity6_.linkLazyJoin_id as linklazy7_28_6_,
- testentity6_.linkLazyNoProxyJoin_id as linklazy9_28_6_,
- testentity6_.linkLazySelect_id as linklaz11_28_6_,
- testentity6_.linkNoProxyJoin_id as linknop13_28_6_,
- testentity6_.linkSelect_id as linksel15_28_6_,
- testentity6_.name as name2_28_6_,
- testentity6_.version as version3_28_6_
- from
- loading_test testentity0_
- left outer join
- loading_test testentity1_
- on testentity0_.link_id=testentity1_.id
- left outer join
- loading_test testentity2_
- on testentity1_.linkJoin_id=testentity2_.id
- left outer join
- loading_test testentity3_
- on testentity2_.linkLazyJoin_id=testentity3_.id
- left outer join
- loading_test testentity4_
- on testentity3_.linkLazyNoProxyJoin_id=testentity4_.id
- left outer join
- loading_test testentity5_
- on testentity4_.linkNoProxy_id=testentity5_.id
- left outer join
- loading_test testentity6_
- on testentity5_.linkNoProxyJoin_id=testentity6_.id
- where
- testentity0_.id=?
- Hibernate:
- select
- testentity0_.id as id1_28_0_,
- testentity0_.link_id as link_id4_28_0_,
- testentity0_.linkJoin_id as linkjoin5_28_0_,
- testentity0_.linkLazy_id as linklazy6_28_0_,
- testentity0_.linkLazyJoin_id as linklazy7_28_0_,
- testentity0_.linkLazyNoProxyJoin_id as linklazy9_28_0_,
- testentity0_.linkLazySelect_id as linklaz11_28_0_,
- testentity0_.linkNoProxyJoin_id as linknop13_28_0_,
- testentity0_.linkSelect_id as linksel15_28_0_,
- testentity0_.name as name2_28_0_,
- testentity0_.version as version3_28_0_,
- testentity1_.id as id1_28_1_,
- testentity1_.link_id as link_id4_28_1_,
- testentity1_.linkJoin_id as linkjoin5_28_1_,
- testentity1_.linkLazy_id as linklazy6_28_1_,
- testentity1_.linkLazyJoin_id as linklazy7_28_1_,
- testentity1_.linkLazyNoProxyJoin_id as linklazy9_28_1_,
- testentity1_.linkLazySelect_id as linklaz11_28_1_,
- testentity1_.linkNoProxyJoin_id as linknop13_28_1_,
- testentity1_.linkSelect_id as linksel15_28_1_,
- testentity1_.name as name2_28_1_,
- testentity1_.version as version3_28_1_,
- testentity2_.id as id1_28_2_,
- testentity2_.link_id as link_id4_28_2_,
- testentity2_.linkJoin_id as linkjoin5_28_2_,
- testentity2_.linkLazy_id as linklazy6_28_2_,
- testentity2_.linkLazyJoin_id as linklazy7_28_2_,
- testentity2_.linkLazyNoProxyJoin_id as linklazy9_28_2_,
- testentity2_.linkLazySelect_id as linklaz11_28_2_,
- testentity2_.linkNoProxyJoin_id as linknop13_28_2_,
- testentity2_.linkSelect_id as linksel15_28_2_,
- testentity2_.name as name2_28_2_,
- testentity2_.version as version3_28_2_,
- testentity3_.id as id1_28_3_,
- testentity3_.link_id as link_id4_28_3_,
- testentity3_.linkJoin_id as linkjoin5_28_3_,
- testentity3_.linkLazy_id as linklazy6_28_3_,
- testentity3_.linkLazyJoin_id as linklazy7_28_3_,
- testentity3_.linkLazyNoProxyJoin_id as linklazy9_28_3_,
- testentity3_.linkLazySelect_id as linklaz11_28_3_,
- testentity3_.linkNoProxyJoin_id as linknop13_28_3_,
- testentity3_.linkSelect_id as linksel15_28_3_,
- testentity3_.name as name2_28_3_,
- testentity3_.version as version3_28_3_,
- testentity4_.id as id1_28_4_,
- testentity4_.link_id as link_id4_28_4_,
- testentity4_.linkJoin_id as linkjoin5_28_4_,
- testentity4_.linkLazy_id as linklazy6_28_4_,
- testentity4_.linkLazyJoin_id as linklazy7_28_4_,
- testentity4_.linkLazyNoProxyJoin_id as linklazy9_28_4_,
- testentity4_.linkLazySelect_id as linklaz11_28_4_,
- testentity4_.linkNoProxyJoin_id as linknop13_28_4_,
- testentity4_.linkSelect_id as linksel15_28_4_,
- testentity4_.name as name2_28_4_,
- testentity4_.version as version3_28_4_,
- testentity5_.id as id1_28_5_,
- testentity5_.link_id as link_id4_28_5_,
- testentity5_.linkJoin_id as linkjoin5_28_5_,
- testentity5_.linkLazy_id as linklazy6_28_5_,
- testentity5_.linkLazyJoin_id as linklazy7_28_5_,
- testentity5_.linkLazyNoProxyJoin_id as linklazy9_28_5_,
- testentity5_.linkLazySelect_id as linklaz11_28_5_,
- testentity5_.linkNoProxyJoin_id as linknop13_28_5_,
- testentity5_.linkSelect_id as linksel15_28_5_,
- testentity5_.name as name2_28_5_,
- testentity5_.version as version3_28_5_,
- testentity6_.id as id1_28_6_,
- testentity6_.link_id as link_id4_28_6_,
- testentity6_.linkJoin_id as linkjoin5_28_6_,
- testentity6_.linkLazy_id as linklazy6_28_6_,
- testentity6_.linkLazyJoin_id as linklazy7_28_6_,
- testentity6_.linkLazyNoProxyJoin_id as linklazy9_28_6_,
- testentity6_.linkLazySelect_id as linklaz11_28_6_,
- testentity6_.linkNoProxyJoin_id as linknop13_28_6_,
- testentity6_.linkSelect_id as linksel15_28_6_,
- testentity6_.name as name2_28_6_,
- testentity6_.version as version3_28_6_
- from
- loading_test testentity0_
- left outer join
- loading_test testentity1_
- on testentity0_.link_id=testentity1_.id
- left outer join
- loading_test testentity2_
- on testentity1_.linkJoin_id=testentity2_.id
- left outer join
- loading_test testentity3_
- on testentity2_.linkLazyJoin_id=testentity3_.id
- left outer join
- loading_test testentity4_
- on testentity3_.linkLazyNoProxyJoin_id=testentity4_.id
- left outer join
- loading_test testentity5_
- on testentity4_.linkNoProxy_id=testentity5_.id
- left outer join
- loading_test testentity6_
- on testentity5_.linkNoProxyJoin_id=testentity6_.id
- where
- testentity0_.id=?
- ######### linkNoProxy = #5:linkNoProxy
- ######### linkNoProxySelect = #6:linkNoProxySelect
- ######### linkNoProxyJoin = #7:linkNoProxyJoin
- ######### linkLazy = #9:linkLazy
- ######### linkLazySelect = #10:linkLazySelect
- ######### linkLazyJoin = #11:linkLazyJoin
- ######### linkLazyNoProxy = #13:linkLazyNoProxy
- ######### linkLazyNoProxySelect = #14:linkLazyNoProxySelect
- ######### linkLazyNoProxyJoin = #15:linkLazyNoProxyJoin
- ######### ================================================================================
- ######### ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ######### ################################################################################
- ######### TEST 201 no graph fetch=1 printAll
- ######### ################################################################################
- ######### final CriteriaQuery<TestEntity> query = builder.createQuery(TestEntity.class);
- ######### final Root<TestEntity> root = query.from(TestEntity.class);
- ######### final Path<Long> id = root.get("id");
- ######### query.where(builder.equal(id, 201L));
- ######### final Fetch<TestEntity, TestEntity> linkFetch = root.fetch("link");
- ######### final Fetch<TestEntity, TestEntity> linkSelectFetch = root.fetch("linkSelect");
- ######### final Fetch<TestEntity, TestEntity> linkJoinFetch = root.fetch("linkJoin");
- ######### final Fetch<TestEntity, TestEntity> linkNoProxyFetch = root.fetch("linkNoProxy");
- ######### final Fetch<TestEntity, TestEntity> linkNoProxySelectFetch = root.fetch("linkNoProxySelect");
- ######### final Fetch<TestEntity, TestEntity> linkNoProxyJoinFetch = root.fetch("linkNoProxyJoin");
- ######### final Fetch<TestEntity, TestEntity> linkLazyFetch = root.fetch("linkLazy");
- ######### final Fetch<TestEntity, TestEntity> linkLazySelectFetch = root.fetch("linkLazySelect");
- ######### final Fetch<TestEntity, TestEntity> linkLazyJoinFetch = root.fetch("linkLazyJoin");
- ######### final Fetch<TestEntity, TestEntity> linkLazyNoProxyFetch = root.fetch("linkLazyNoProxy");
- ######### final Fetch<TestEntity, TestEntity> linkLazyNoProxySelectFetch = root.fetch("linkLazyNoProxySelect");
- ######### final Fetch<TestEntity, TestEntity> linkLazyNoProxyJoinFetch = root.fetch("linkLazyNoProxyJoin");
- ######### final TypedQuery<TestEntity> tq = session.createQuery(query);
- ######### final TestEntity test = tq.getSingleResult();
- Hibernate:
- select
- testentity0_.id as id1_28_0_,
- testentity1_.id as id1_28_1_,
- testentity2_.id as id1_28_2_,
- testentity3_.id as id1_28_3_,
- testentity4_.id as id1_28_4_,
- testentity5_.id as id1_28_5_,
- testentity6_.id as id1_28_6_,
- testentity7_.id as id1_28_7_,
- testentity8_.id as id1_28_8_,
- testentity9_.id as id1_28_9_,
- testentity10_.id as id1_28_10_,
- testentity11_.id as id1_28_11_,
- testentity12_.id as id1_28_12_,
- testentity0_.link_id as link_id4_28_0_,
- testentity0_.linkJoin_id as linkjoin5_28_0_,
- testentity0_.linkLazy_id as linklazy6_28_0_,
- testentity0_.linkLazyJoin_id as linklazy7_28_0_,
- testentity0_.linkLazyNoProxyJoin_id as linklazy9_28_0_,
- testentity0_.linkLazySelect_id as linklaz11_28_0_,
- testentity0_.linkNoProxyJoin_id as linknop13_28_0_,
- testentity0_.linkSelect_id as linksel15_28_0_,
- testentity0_.name as name2_28_0_,
- testentity0_.version as version3_28_0_,
- testentity1_.link_id as link_id4_28_1_,
- testentity1_.linkJoin_id as linkjoin5_28_1_,
- testentity1_.linkLazy_id as linklazy6_28_1_,
- testentity1_.linkLazyJoin_id as linklazy7_28_1_,
- testentity1_.linkLazyNoProxyJoin_id as linklazy9_28_1_,
- testentity1_.linkLazySelect_id as linklaz11_28_1_,
- testentity1_.linkNoProxyJoin_id as linknop13_28_1_,
- testentity1_.linkSelect_id as linksel15_28_1_,
- testentity1_.name as name2_28_1_,
- testentity1_.version as version3_28_1_,
- testentity2_.link_id as link_id4_28_2_,
- testentity2_.linkJoin_id as linkjoin5_28_2_,
- testentity2_.linkLazy_id as linklazy6_28_2_,
- testentity2_.linkLazyJoin_id as linklazy7_28_2_,
- testentity2_.linkLazyNoProxyJoin_id as linklazy9_28_2_,
- testentity2_.linkLazySelect_id as linklaz11_28_2_,
- testentity2_.linkNoProxyJoin_id as linknop13_28_2_,
- testentity2_.linkSelect_id as linksel15_28_2_,
- testentity2_.name as name2_28_2_,
- testentity2_.version as version3_28_2_,
- testentity3_.link_id as link_id4_28_3_,
- testentity3_.linkJoin_id as linkjoin5_28_3_,
- testentity3_.linkLazy_id as linklazy6_28_3_,
- testentity3_.linkLazyJoin_id as linklazy7_28_3_,
- testentity3_.linkLazyNoProxyJoin_id as linklazy9_28_3_,
- testentity3_.linkLazySelect_id as linklaz11_28_3_,
- testentity3_.linkNoProxyJoin_id as linknop13_28_3_,
- testentity3_.linkSelect_id as linksel15_28_3_,
- testentity3_.name as name2_28_3_,
- testentity3_.version as version3_28_3_,
- testentity4_.link_id as link_id4_28_4_,
- testentity4_.linkJoin_id as linkjoin5_28_4_,
- testentity4_.linkLazy_id as linklazy6_28_4_,
- testentity4_.linkLazyJoin_id as linklazy7_28_4_,
- testentity4_.linkLazyNoProxyJoin_id as linklazy9_28_4_,
- testentity4_.linkLazySelect_id as linklaz11_28_4_,
- testentity4_.linkNoProxyJoin_id as linknop13_28_4_,
- testentity4_.linkSelect_id as linksel15_28_4_,
- testentity4_.name as name2_28_4_,
- testentity4_.version as version3_28_4_,
- testentity5_.link_id as link_id4_28_5_,
- testentity5_.linkJoin_id as linkjoin5_28_5_,
- testentity5_.linkLazy_id as linklazy6_28_5_,
- testentity5_.linkLazyJoin_id as linklazy7_28_5_,
- testentity5_.linkLazyNoProxyJoin_id as linklazy9_28_5_,
- testentity5_.linkLazySelect_id as linklaz11_28_5_,
- testentity5_.linkNoProxyJoin_id as linknop13_28_5_,
- testentity5_.linkSelect_id as linksel15_28_5_,
- testentity5_.name as name2_28_5_,
- testentity5_.version as version3_28_5_,
- testentity6_.link_id as link_id4_28_6_,
- testentity6_.linkJoin_id as linkjoin5_28_6_,
- testentity6_.linkLazy_id as linklazy6_28_6_,
- testentity6_.linkLazyJoin_id as linklazy7_28_6_,
- testentity6_.linkLazyNoProxyJoin_id as linklazy9_28_6_,
- testentity6_.linkLazySelect_id as linklaz11_28_6_,
- testentity6_.linkNoProxyJoin_id as linknop13_28_6_,
- testentity6_.linkSelect_id as linksel15_28_6_,
- testentity6_.name as name2_28_6_,
- testentity6_.version as version3_28_6_,
- testentity7_.link_id as link_id4_28_7_,
- testentity7_.linkJoin_id as linkjoin5_28_7_,
- testentity7_.linkLazy_id as linklazy6_28_7_,
- testentity7_.linkLazyJoin_id as linklazy7_28_7_,
- testentity7_.linkLazyNoProxyJoin_id as linklazy9_28_7_,
- testentity7_.linkLazySelect_id as linklaz11_28_7_,
- testentity7_.linkNoProxyJoin_id as linknop13_28_7_,
- testentity7_.linkSelect_id as linksel15_28_7_,
- testentity7_.name as name2_28_7_,
- testentity7_.version as version3_28_7_,
- testentity8_.link_id as link_id4_28_8_,
- testentity8_.linkJoin_id as linkjoin5_28_8_,
- testentity8_.linkLazy_id as linklazy6_28_8_,
- testentity8_.linkLazyJoin_id as linklazy7_28_8_,
- testentity8_.linkLazyNoProxyJoin_id as linklazy9_28_8_,
- testentity8_.linkLazySelect_id as linklaz11_28_8_,
- testentity8_.linkNoProxyJoin_id as linknop13_28_8_,
- testentity8_.linkSelect_id as linksel15_28_8_,
- testentity8_.name as name2_28_8_,
- testentity8_.version as version3_28_8_,
- testentity9_.link_id as link_id4_28_9_,
- testentity9_.linkJoin_id as linkjoin5_28_9_,
- testentity9_.linkLazy_id as linklazy6_28_9_,
- testentity9_.linkLazyJoin_id as linklazy7_28_9_,
- testentity9_.linkLazyNoProxyJoin_id as linklazy9_28_9_,
- testentity9_.linkLazySelect_id as linklaz11_28_9_,
- testentity9_.linkNoProxyJoin_id as linknop13_28_9_,
- testentity9_.linkSelect_id as linksel15_28_9_,
- testentity9_.name as name2_28_9_,
- testentity9_.version as version3_28_9_,
- testentity10_.link_id as link_id4_28_10_,
- testentity10_.linkJoin_id as linkjoin5_28_10_,
- testentity10_.linkLazy_id as linklazy6_28_10_,
- testentity10_.linkLazyJoin_id as linklazy7_28_10_,
- testentity10_.linkLazyNoProxyJoin_id as linklazy9_28_10_,
- testentity10_.linkLazySelect_id as linklaz11_28_10_,
- testentity10_.linkNoProxyJoin_id as linknop13_28_10_,
- testentity10_.linkSelect_id as linksel15_28_10_,
- testentity10_.name as name2_28_10_,
- testentity10_.version as version3_28_10_,
- testentity11_.link_id as link_id4_28_11_,
- testentity11_.linkJoin_id as linkjoin5_28_11_,
- testentity11_.linkLazy_id as linklazy6_28_11_,
- testentity11_.linkLazyJoin_id as linklazy7_28_11_,
- testentity11_.linkLazyNoProxyJoin_id as linklazy9_28_11_,
- testentity11_.linkLazySelect_id as linklaz11_28_11_,
- testentity11_.linkNoProxyJoin_id as linknop13_28_11_,
- testentity11_.linkSelect_id as linksel15_28_11_,
- testentity11_.name as name2_28_11_,
- testentity11_.version as version3_28_11_,
- testentity12_.link_id as link_id4_28_12_,
- testentity12_.linkJoin_id as linkjoin5_28_12_,
- testentity12_.linkLazy_id as linklazy6_28_12_,
- testentity12_.linkLazyJoin_id as linklazy7_28_12_,
- testentity12_.linkLazyNoProxyJoin_id as linklazy9_28_12_,
- testentity12_.linkLazySelect_id as linklaz11_28_12_,
- testentity12_.linkNoProxyJoin_id as linknop13_28_12_,
- testentity12_.linkSelect_id as linksel15_28_12_,
- testentity12_.name as name2_28_12_,
- testentity12_.version as version3_28_12_
- from
- loading_test testentity0_
- inner join
- loading_test testentity1_
- on testentity0_.link_id=testentity1_.id
- inner join
- loading_test testentity2_
- on testentity0_.linkSelect_id=testentity2_.id
- inner join
- loading_test testentity3_
- on testentity0_.linkJoin_id=testentity3_.id
- inner join
- loading_test testentity4_
- on testentity0_.linkNoProxy_id=testentity4_.id
- inner join
- loading_test testentity5_
- on testentity0_.linkNoProxySelect_id=testentity5_.id
- inner join
- loading_test testentity6_
- on testentity0_.linkNoProxyJoin_id=testentity6_.id
- inner join
- loading_test testentity7_
- on testentity0_.linkLazy_id=testentity7_.id
- inner join
- loading_test testentity8_
- on testentity0_.linkLazySelect_id=testentity8_.id
- inner join
- loading_test testentity9_
- on testentity0_.linkLazyJoin_id=testentity9_.id
- inner join
- loading_test testentity10_
- on testentity0_.linkLazyNoProxy_id=testentity10_.id
- inner join
- loading_test testentity11_
- on testentity0_.linkLazyNoProxySelect_id=testentity11_.id
- inner join
- loading_test testentity12_
- on testentity0_.linkLazyNoProxyJoin_id=testentity12_.id
- where
- testentity0_.id=201
- ######### test.reportInitializationState();
- ######### ================================================================================
- ######### #201:shallow-fetch Initialization State
- ######### --------------------------------------------------------------------------------
- ######### link: YES 10/10
- ######### linkJoin: YES 10/10
- ######### linkLazy: YES 10/10
- ######### linkLazyJoin: YES 10/10
- ######### linkLazyNoProxy: n/a 0/10
- ######### linkLazyNoProxyJoin: YES 10/10
- ######### linkLazyNoProxySelect: n/a 0/10
- ######### linkLazySelect: YES 10/10
- ######### linkNoProxy: n/a 0/10
- ######### linkNoProxyJoin: YES 10/10
- ######### linkNoProxySelect: n/a 0/10
- ######### linkSelect: YES 10/10
- ######### --------------------------------------------------------------------------------
- ######### #201:shallow-fetch Reflection State
- ######### --------------------------------------------------------------------------------
- ######### link: HERE 10/10
- ######### linkJoin: HERE 10/10
- ######### linkLazy: HERE 10/10
- ######### linkLazyJoin: HERE 10/10
- ######### linkLazyNoProxy: null 0/10
- ######### linkLazyNoProxyJoin: HERE 10/10
- ######### linkLazyNoProxySelect: null 0/10
- ######### linkLazySelect: HERE 10/10
- ######### linkNoProxy: null 0/10
- ######### linkNoProxyJoin: HERE 10/10
- ######### linkNoProxySelect: null 0/10
- ######### linkSelect: HERE 10/10
- ######### ================================================================================
- ######### test.printAll();
- ######### ================================================================================
- ######### #201:shallow-fetch
- ######### --------------------------------------------------------------------------------
- ######### link = #1:link
- ######### linkSelect = #2:linkSelect
- ######### linkJoin = #3:linkJoin
- Hibernate:
- select
- testentity_.linkLazyNoProxy_id as linklazy8_28_,
- testentity_.linkLazyNoProxySelect_id as linklaz10_28_,
- testentity_.linkNoProxy_id as linknop12_28_,
- testentity_.linkNoProxySelect_id as linknop14_28_
- from
- loading_test testentity_
- where
- testentity_.id=?
- ######### linkNoProxy = #5:linkNoProxy
- ######### linkNoProxySelect = #6:linkNoProxySelect
- ######### linkNoProxyJoin = #7:linkNoProxyJoin
- ######### linkLazy = #9:linkLazy
- ######### linkLazySelect = #10:linkLazySelect
- ######### linkLazyJoin = #11:linkLazyJoin
- ######### linkLazyNoProxy = #13:linkLazyNoProxy
- ######### linkLazyNoProxySelect = #14:linkLazyNoProxySelect
- ######### linkLazyNoProxyJoin = #15:linkLazyNoProxyJoin
- ######### ================================================================================
- ######### ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ######### ################################################################################
- ######### TEST 202 no graph fetch=2 printAll
- ######### ################################################################################
- ######### final CriteriaQuery<TestEntity> query = builder.createQuery(TestEntity.class);
- ######### final Root<TestEntity> root = query.from(TestEntity.class);
- ######### final Path<Long> id = root.get("id");
- ######### query.where(builder.equal(id, 202L));
- ######### final Fetch<TestEntity, TestEntity> linkFetch = root.fetch("link");
- ######### final Fetch<TestEntity, TestEntity> linkSelectFetch = root.fetch("linkSelect");
- ######### final Fetch<TestEntity, TestEntity> linkJoinFetch = root.fetch("linkJoin");
- ######### final Fetch<TestEntity, TestEntity> linkNoProxyFetch = root.fetch("linkNoProxy");
- ######### final Fetch<TestEntity, TestEntity> linkNoProxySelectFetch = root.fetch("linkNoProxySelect");
- ######### final Fetch<TestEntity, TestEntity> linkNoProxyJoinFetch = root.fetch("linkNoProxyJoin");
- ######### final Fetch<TestEntity, TestEntity> linkLazyFetch = root.fetch("linkLazy");
- ######### final Fetch<TestEntity, TestEntity> linkLazySelectFetch = root.fetch("linkLazySelect");
- ######### final Fetch<TestEntity, TestEntity> linkLazyJoinFetch = root.fetch("linkLazyJoin");
- ######### final Fetch<TestEntity, TestEntity> linkLazyNoProxyFetch = root.fetch("linkLazyNoProxy");
- ######### final Fetch<TestEntity, TestEntity> linkLazyNoProxySelectFetch = root.fetch("linkLazyNoProxySelect");
- ######### final Fetch<TestEntity, TestEntity> linkLazyNoProxyJoinFetch = root.fetch("linkLazyNoProxyJoin");
- ######### final TypedQuery<TestEntity> tq = session.createQuery(query);
- ######### final TestEntity test = tq.getSingleResult();
- Hibernate:
- select
- testentity0_.id as id1_28_0_,
- testentity1_.id as id1_28_1_,
- testentity2_.id as id1_28_2_,
- testentity3_.id as id1_28_3_,
- testentity4_.id as id1_28_4_,
- testentity5_.id as id1_28_5_,
- testentity6_.id as id1_28_6_,
- testentity7_.id as id1_28_7_,
- testentity8_.id as id1_28_8_,
- testentity9_.id as id1_28_9_,
- testentity10_.id as id1_28_10_,
- testentity11_.id as id1_28_11_,
- testentity12_.id as id1_28_12_,
- testentity0_.link_id as link_id4_28_0_,
- testentity0_.linkJoin_id as linkjoin5_28_0_,
- testentity0_.linkLazy_id as linklazy6_28_0_,
- testentity0_.linkLazyJoin_id as linklazy7_28_0_,
- testentity0_.linkLazyNoProxyJoin_id as linklazy9_28_0_,
- testentity0_.linkLazySelect_id as linklaz11_28_0_,
- testentity0_.linkNoProxyJoin_id as linknop13_28_0_,
- testentity0_.linkSelect_id as linksel15_28_0_,
- testentity0_.name as name2_28_0_,
- testentity0_.version as version3_28_0_,
- testentity1_.link_id as link_id4_28_1_,
- testentity1_.linkJoin_id as linkjoin5_28_1_,
- testentity1_.linkLazy_id as linklazy6_28_1_,
- testentity1_.linkLazyJoin_id as linklazy7_28_1_,
- testentity1_.linkLazyNoProxyJoin_id as linklazy9_28_1_,
- testentity1_.linkLazySelect_id as linklaz11_28_1_,
- testentity1_.linkNoProxyJoin_id as linknop13_28_1_,
- testentity1_.linkSelect_id as linksel15_28_1_,
- testentity1_.name as name2_28_1_,
- testentity1_.version as version3_28_1_,
- testentity2_.link_id as link_id4_28_2_,
- testentity2_.linkJoin_id as linkjoin5_28_2_,
- testentity2_.linkLazy_id as linklazy6_28_2_,
- testentity2_.linkLazyJoin_id as linklazy7_28_2_,
- testentity2_.linkLazyNoProxyJoin_id as linklazy9_28_2_,
- testentity2_.linkLazySelect_id as linklaz11_28_2_,
- testentity2_.linkNoProxyJoin_id as linknop13_28_2_,
- testentity2_.linkSelect_id as linksel15_28_2_,
- testentity2_.name as name2_28_2_,
- testentity2_.version as version3_28_2_,
- testentity3_.link_id as link_id4_28_3_,
- testentity3_.linkJoin_id as linkjoin5_28_3_,
- testentity3_.linkLazy_id as linklazy6_28_3_,
- testentity3_.linkLazyJoin_id as linklazy7_28_3_,
- testentity3_.linkLazyNoProxyJoin_id as linklazy9_28_3_,
- testentity3_.linkLazySelect_id as linklaz11_28_3_,
- testentity3_.linkNoProxyJoin_id as linknop13_28_3_,
- testentity3_.linkSelect_id as linksel15_28_3_,
- testentity3_.name as name2_28_3_,
- testentity3_.version as version3_28_3_,
- testentity4_.link_id as link_id4_28_4_,
- testentity4_.linkJoin_id as linkjoin5_28_4_,
- testentity4_.linkLazy_id as linklazy6_28_4_,
- testentity4_.linkLazyJoin_id as linklazy7_28_4_,
- testentity4_.linkLazyNoProxyJoin_id as linklazy9_28_4_,
- testentity4_.linkLazySelect_id as linklaz11_28_4_,
- testentity4_.linkNoProxyJoin_id as linknop13_28_4_,
- testentity4_.linkSelect_id as linksel15_28_4_,
- testentity4_.name as name2_28_4_,
- testentity4_.version as version3_28_4_,
- testentity5_.link_id as link_id4_28_5_,
- testentity5_.linkJoin_id as linkjoin5_28_5_,
- testentity5_.linkLazy_id as linklazy6_28_5_,
- testentity5_.linkLazyJoin_id as linklazy7_28_5_,
- testentity5_.linkLazyNoProxyJoin_id as linklazy9_28_5_,
- testentity5_.linkLazySelect_id as linklaz11_28_5_,
- testentity5_.linkNoProxyJoin_id as linknop13_28_5_,
- testentity5_.linkSelect_id as linksel15_28_5_,
- testentity5_.name as name2_28_5_,
- testentity5_.version as version3_28_5_,
- testentity6_.link_id as link_id4_28_6_,
- testentity6_.linkJoin_id as linkjoin5_28_6_,
- testentity6_.linkLazy_id as linklazy6_28_6_,
- testentity6_.linkLazyJoin_id as linklazy7_28_6_,
- testentity6_.linkLazyNoProxyJoin_id as linklazy9_28_6_,
- testentity6_.linkLazySelect_id as linklaz11_28_6_,
- testentity6_.linkNoProxyJoin_id as linknop13_28_6_,
- testentity6_.linkSelect_id as linksel15_28_6_,
- testentity6_.name as name2_28_6_,
- testentity6_.version as version3_28_6_,
- testentity7_.link_id as link_id4_28_7_,
- testentity7_.linkJoin_id as linkjoin5_28_7_,
- testentity7_.linkLazy_id as linklazy6_28_7_,
- testentity7_.linkLazyJoin_id as linklazy7_28_7_,
- testentity7_.linkLazyNoProxyJoin_id as linklazy9_28_7_,
- testentity7_.linkLazySelect_id as linklaz11_28_7_,
- testentity7_.linkNoProxyJoin_id as linknop13_28_7_,
- testentity7_.linkSelect_id as linksel15_28_7_,
- testentity7_.name as name2_28_7_,
- testentity7_.version as version3_28_7_,
- testentity8_.link_id as link_id4_28_8_,
- testentity8_.linkJoin_id as linkjoin5_28_8_,
- testentity8_.linkLazy_id as linklazy6_28_8_,
- testentity8_.linkLazyJoin_id as linklazy7_28_8_,
- testentity8_.linkLazyNoProxyJoin_id as linklazy9_28_8_,
- testentity8_.linkLazySelect_id as linklaz11_28_8_,
- testentity8_.linkNoProxyJoin_id as linknop13_28_8_,
- testentity8_.linkSelect_id as linksel15_28_8_,
- testentity8_.name as name2_28_8_,
- testentity8_.version as version3_28_8_,
- testentity9_.link_id as link_id4_28_9_,
- testentity9_.linkJoin_id as linkjoin5_28_9_,
- testentity9_.linkLazy_id as linklazy6_28_9_,
- testentity9_.linkLazyJoin_id as linklazy7_28_9_,
- testentity9_.linkLazyNoProxyJoin_id as linklazy9_28_9_,
- testentity9_.linkLazySelect_id as linklaz11_28_9_,
- testentity9_.linkNoProxyJoin_id as linknop13_28_9_,
- testentity9_.linkSelect_id as linksel15_28_9_,
- testentity9_.name as name2_28_9_,
- testentity9_.version as version3_28_9_,
- testentity10_.link_id as link_id4_28_10_,
- testentity10_.linkJoin_id as linkjoin5_28_10_,
- testentity10_.linkLazy_id as linklazy6_28_10_,
- testentity10_.linkLazyJoin_id as linklazy7_28_10_,
- testentity10_.linkLazyNoProxyJoin_id as linklazy9_28_10_,
- testentity10_.linkLazySelect_id as linklaz11_28_10_,
- testentity10_.linkNoProxyJoin_id as linknop13_28_10_,
- testentity10_.linkSelect_id as linksel15_28_10_,
- testentity10_.name as name2_28_10_,
- testentity10_.version as version3_28_10_,
- testentity11_.link_id as link_id4_28_11_,
- testentity11_.linkJoin_id as linkjoin5_28_11_,
- testentity11_.linkLazy_id as linklazy6_28_11_,
- testentity11_.linkLazyJoin_id as linklazy7_28_11_,
- testentity11_.linkLazyNoProxyJoin_id as linklazy9_28_11_,
- testentity11_.linkLazySelect_id as linklaz11_28_11_,
- testentity11_.linkNoProxyJoin_id as linknop13_28_11_,
- testentity11_.linkSelect_id as linksel15_28_11_,
- testentity11_.name as name2_28_11_,
- testentity11_.version as version3_28_11_,
- testentity12_.link_id as link_id4_28_12_,
- testentity12_.linkJoin_id as linkjoin5_28_12_,
- testentity12_.linkLazy_id as linklazy6_28_12_,
- testentity12_.linkLazyJoin_id as linklazy7_28_12_,
- testentity12_.linkLazyNoProxyJoin_id as linklazy9_28_12_,
- testentity12_.linkLazySelect_id as linklaz11_28_12_,
- testentity12_.linkNoProxyJoin_id as linknop13_28_12_,
- testentity12_.linkSelect_id as linksel15_28_12_,
- testentity12_.name as name2_28_12_,
- testentity12_.version as version3_28_12_
- from
- loading_test testentity0_
- inner join
- loading_test testentity1_
- on testentity0_.link_id=testentity1_.id
- inner join
- loading_test testentity2_
- on testentity0_.linkSelect_id=testentity2_.id
- inner join
- loading_test testentity3_
- on testentity0_.linkJoin_id=testentity3_.id
- inner join
- loading_test testentity4_
- on testentity0_.linkNoProxy_id=testentity4_.id
- inner join
- loading_test testentity5_
- on testentity0_.linkNoProxySelect_id=testentity5_.id
- inner join
- loading_test testentity6_
- on testentity0_.linkNoProxyJoin_id=testentity6_.id
- inner join
- loading_test testentity7_
- on testentity0_.linkLazy_id=testentity7_.id
- inner join
- loading_test testentity8_
- on testentity0_.linkLazySelect_id=testentity8_.id
- inner join
- loading_test testentity9_
- on testentity0_.linkLazyJoin_id=testentity9_.id
- inner join
- loading_test testentity10_
- on testentity0_.linkLazyNoProxy_id=testentity10_.id
- inner join
- loading_test testentity11_
- on testentity0_.linkLazyNoProxySelect_id=testentity11_.id
- inner join
- loading_test testentity12_
- on testentity0_.linkLazyNoProxyJoin_id=testentity12_.id
- where
- testentity0_.id=202
- ######### test.reportInitializationState();
- ######### ================================================================================
- ######### #202:id-fetch Initialization State
- ######### --------------------------------------------------------------------------------
- ######### link: YES 11/11
- ######### linkJoin: YES 11/11
- ######### linkLazy: YES 11/11
- ######### linkLazyJoin: YES 11/11
- ######### linkLazyNoProxy: n/a 0/11
- ######### linkLazyNoProxyJoin: YES 11/11
- ######### linkLazyNoProxySelect: n/a 0/11
- ######### linkLazySelect: YES 11/11
- ######### linkNoProxy: n/a 0/11
- ######### linkNoProxyJoin: YES 11/11
- ######### linkNoProxySelect: n/a 0/11
- ######### linkSelect: YES 11/11
- ######### --------------------------------------------------------------------------------
- ######### #202:id-fetch Reflection State
- ######### --------------------------------------------------------------------------------
- ######### link: HERE 11/11
- ######### linkJoin: HERE 11/11
- ######### linkLazy: HERE 11/11
- ######### linkLazyJoin: HERE 11/11
- ######### linkLazyNoProxy: null 0/11
- ######### linkLazyNoProxyJoin: HERE 11/11
- ######### linkLazyNoProxySelect: null 0/11
- ######### linkLazySelect: HERE 11/11
- ######### linkNoProxy: null 0/11
- ######### linkNoProxyJoin: HERE 11/11
- ######### linkNoProxySelect: null 0/11
- ######### linkSelect: HERE 11/11
- ######### ================================================================================
- ######### test.printAll();
- ######### ================================================================================
- ######### #202:id-fetch
- ######### --------------------------------------------------------------------------------
- ######### link = #1:link
- ######### linkSelect = #2:linkSelect
- ######### linkJoin = #3:linkJoin
- Hibernate:
- select
- testentity_.linkLazyNoProxy_id as linklazy8_28_,
- testentity_.linkLazyNoProxySelect_id as linklaz10_28_,
- testentity_.linkNoProxy_id as linknop12_28_,
- testentity_.linkNoProxySelect_id as linknop14_28_
- from
- loading_test testentity_
- where
- testentity_.id=?
- ######### linkNoProxy = #5:linkNoProxy
- ######### linkNoProxySelect = #6:linkNoProxySelect
- ######### linkNoProxyJoin = #7:linkNoProxyJoin
- ######### linkLazy = #9:linkLazy
- ######### linkLazySelect = #10:linkLazySelect
- ######### linkLazyJoin = #11:linkLazyJoin
- ######### linkLazyNoProxy = #13:linkLazyNoProxy
- ######### linkLazyNoProxySelect = #14:linkLazyNoProxySelect
- ######### linkLazyNoProxyJoin = #15:linkLazyNoProxyJoin
- ######### ================================================================================
- ######### ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ######### ################################################################################
- ######### TEST 203 no graph fetch=3 printAll
- ######### ################################################################################
- ######### final CriteriaQuery<TestEntity> query = builder.createQuery(TestEntity.class);
- ######### final Root<TestEntity> root = query.from(TestEntity.class);
- ######### final Path<Long> id = root.get("id");
- ######### query.where(builder.equal(id, 203L));
- ######### final Fetch<TestEntity, TestEntity> linkFetch = root.fetch("link");
- ######### final Fetch<TestEntity, TestEntity> linkSelectFetch = root.fetch("linkSelect");
- ######### final Fetch<TestEntity, TestEntity> linkJoinFetch = root.fetch("linkJoin");
- ######### final Fetch<TestEntity, TestEntity> linkNoProxyFetch = root.fetch("linkNoProxy");
- ######### final Fetch<TestEntity, TestEntity> linkNoProxySelectFetch = root.fetch("linkNoProxySelect");
- ######### final Fetch<TestEntity, TestEntity> linkNoProxyJoinFetch = root.fetch("linkNoProxyJoin");
- ######### final Fetch<TestEntity, TestEntity> linkLazyFetch = root.fetch("linkLazy");
- ######### final Fetch<TestEntity, TestEntity> linkLazySelectFetch = root.fetch("linkLazySelect");
- ######### final Fetch<TestEntity, TestEntity> linkLazyJoinFetch = root.fetch("linkLazyJoin");
- ######### final Fetch<TestEntity, TestEntity> linkLazyNoProxyFetch = root.fetch("linkLazyNoProxy");
- ######### final Fetch<TestEntity, TestEntity> linkLazyNoProxySelectFetch = root.fetch("linkLazyNoProxySelect");
- ######### final Fetch<TestEntity, TestEntity> linkLazyNoProxyJoinFetch = root.fetch("linkLazyNoProxyJoin");
- ######### final TypedQuery<TestEntity> tq = session.createQuery(query);
- ######### final TestEntity test = tq.getSingleResult();
- Hibernate:
- select
- testentity0_.id as id1_28_0_,
- testentity1_.id as id1_28_1_,
- testentity2_.id as id1_28_2_,
- testentity3_.id as id1_28_3_,
- testentity4_.id as id1_28_4_,
- testentity5_.id as id1_28_5_,
- testentity6_.id as id1_28_6_,
- testentity7_.id as id1_28_7_,
- testentity8_.id as id1_28_8_,
- testentity9_.id as id1_28_9_,
- testentity10_.id as id1_28_10_,
- testentity11_.id as id1_28_11_,
- testentity12_.id as id1_28_12_,
- testentity0_.link_id as link_id4_28_0_,
- testentity0_.linkJoin_id as linkjoin5_28_0_,
- testentity0_.linkLazy_id as linklazy6_28_0_,
- testentity0_.linkLazyJoin_id as linklazy7_28_0_,
- testentity0_.linkLazyNoProxyJoin_id as linklazy9_28_0_,
- testentity0_.linkLazySelect_id as linklaz11_28_0_,
- testentity0_.linkNoProxyJoin_id as linknop13_28_0_,
- testentity0_.linkSelect_id as linksel15_28_0_,
- testentity0_.name as name2_28_0_,
- testentity0_.version as version3_28_0_,
- testentity1_.link_id as link_id4_28_1_,
- testentity1_.linkJoin_id as linkjoin5_28_1_,
- testentity1_.linkLazy_id as linklazy6_28_1_,
- testentity1_.linkLazyJoin_id as linklazy7_28_1_,
- testentity1_.linkLazyNoProxyJoin_id as linklazy9_28_1_,
- testentity1_.linkLazySelect_id as linklaz11_28_1_,
- testentity1_.linkNoProxyJoin_id as linknop13_28_1_,
- testentity1_.linkSelect_id as linksel15_28_1_,
- testentity1_.name as name2_28_1_,
- testentity1_.version as version3_28_1_,
- testentity2_.link_id as link_id4_28_2_,
- testentity2_.linkJoin_id as linkjoin5_28_2_,
- testentity2_.linkLazy_id as linklazy6_28_2_,
- testentity2_.linkLazyJoin_id as linklazy7_28_2_,
- testentity2_.linkLazyNoProxyJoin_id as linklazy9_28_2_,
- testentity2_.linkLazySelect_id as linklaz11_28_2_,
- testentity2_.linkNoProxyJoin_id as linknop13_28_2_,
- testentity2_.linkSelect_id as linksel15_28_2_,
- testentity2_.name as name2_28_2_,
- testentity2_.version as version3_28_2_,
- testentity3_.link_id as link_id4_28_3_,
- testentity3_.linkJoin_id as linkjoin5_28_3_,
- testentity3_.linkLazy_id as linklazy6_28_3_,
- testentity3_.linkLazyJoin_id as linklazy7_28_3_,
- testentity3_.linkLazyNoProxyJoin_id as linklazy9_28_3_,
- testentity3_.linkLazySelect_id as linklaz11_28_3_,
- testentity3_.linkNoProxyJoin_id as linknop13_28_3_,
- testentity3_.linkSelect_id as linksel15_28_3_,
- testentity3_.name as name2_28_3_,
- testentity3_.version as version3_28_3_,
- testentity4_.link_id as link_id4_28_4_,
- testentity4_.linkJoin_id as linkjoin5_28_4_,
- testentity4_.linkLazy_id as linklazy6_28_4_,
- testentity4_.linkLazyJoin_id as linklazy7_28_4_,
- testentity4_.linkLazyNoProxyJoin_id as linklazy9_28_4_,
- testentity4_.linkLazySelect_id as linklaz11_28_4_,
- testentity4_.linkNoProxyJoin_id as linknop13_28_4_,
- testentity4_.linkSelect_id as linksel15_28_4_,
- testentity4_.name as name2_28_4_,
- testentity4_.version as version3_28_4_,
- testentity5_.link_id as link_id4_28_5_,
- testentity5_.linkJoin_id as linkjoin5_28_5_,
- testentity5_.linkLazy_id as linklazy6_28_5_,
- testentity5_.linkLazyJoin_id as linklazy7_28_5_,
- testentity5_.linkLazyNoProxyJoin_id as linklazy9_28_5_,
- testentity5_.linkLazySelect_id as linklaz11_28_5_,
- testentity5_.linkNoProxyJoin_id as linknop13_28_5_,
- testentity5_.linkSelect_id as linksel15_28_5_,
- testentity5_.name as name2_28_5_,
- testentity5_.version as version3_28_5_,
- testentity6_.link_id as link_id4_28_6_,
- testentity6_.linkJoin_id as linkjoin5_28_6_,
- testentity6_.linkLazy_id as linklazy6_28_6_,
- testentity6_.linkLazyJoin_id as linklazy7_28_6_,
- testentity6_.linkLazyNoProxyJoin_id as linklazy9_28_6_,
- testentity6_.linkLazySelect_id as linklaz11_28_6_,
- testentity6_.linkNoProxyJoin_id as linknop13_28_6_,
- testentity6_.linkSelect_id as linksel15_28_6_,
- testentity6_.name as name2_28_6_,
- testentity6_.version as version3_28_6_,
- testentity7_.link_id as link_id4_28_7_,
- testentity7_.linkJoin_id as linkjoin5_28_7_,
- testentity7_.linkLazy_id as linklazy6_28_7_,
- testentity7_.linkLazyJoin_id as linklazy7_28_7_,
- testentity7_.linkLazyNoProxyJoin_id as linklazy9_28_7_,
- testentity7_.linkLazySelect_id as linklaz11_28_7_,
- testentity7_.linkNoProxyJoin_id as linknop13_28_7_,
- testentity7_.linkSelect_id as linksel15_28_7_,
- testentity7_.name as name2_28_7_,
- testentity7_.version as version3_28_7_,
- testentity8_.link_id as link_id4_28_8_,
- testentity8_.linkJoin_id as linkjoin5_28_8_,
- testentity8_.linkLazy_id as linklazy6_28_8_,
- testentity8_.linkLazyJoin_id as linklazy7_28_8_,
- testentity8_.linkLazyNoProxyJoin_id as linklazy9_28_8_,
- testentity8_.linkLazySelect_id as linklaz11_28_8_,
- testentity8_.linkNoProxyJoin_id as linknop13_28_8_,
- testentity8_.linkSelect_id as linksel15_28_8_,
- testentity8_.name as name2_28_8_,
- testentity8_.version as version3_28_8_,
- testentity9_.link_id as link_id4_28_9_,
- testentity9_.linkJoin_id as linkjoin5_28_9_,
- testentity9_.linkLazy_id as linklazy6_28_9_,
- testentity9_.linkLazyJoin_id as linklazy7_28_9_,
- testentity9_.linkLazyNoProxyJoin_id as linklazy9_28_9_,
- testentity9_.linkLazySelect_id as linklaz11_28_9_,
- testentity9_.linkNoProxyJoin_id as linknop13_28_9_,
- testentity9_.linkSelect_id as linksel15_28_9_,
- testentity9_.name as name2_28_9_,
- testentity9_.version as version3_28_9_,
- testentity10_.link_id as link_id4_28_10_,
- testentity10_.linkJoin_id as linkjoin5_28_10_,
- testentity10_.linkLazy_id as linklazy6_28_10_,
- testentity10_.linkLazyJoin_id as linklazy7_28_10_,
- testentity10_.linkLazyNoProxyJoin_id as linklazy9_28_10_,
- testentity10_.linkLazySelect_id as linklaz11_28_10_,
- testentity10_.linkNoProxyJoin_id as linknop13_28_10_,
- testentity10_.linkSelect_id as linksel15_28_10_,
- testentity10_.name as name2_28_10_,
- testentity10_.version as version3_28_10_,
- testentity11_.link_id as link_id4_28_11_,
- testentity11_.linkJoin_id as linkjoin5_28_11_,
- testentity11_.linkLazy_id as linklazy6_28_11_,
- testentity11_.linkLazyJoin_id as linklazy7_28_11_,
- testentity11_.linkLazyNoProxyJoin_id as linklazy9_28_11_,
- testentity11_.linkLazySelect_id as linklaz11_28_11_,
- testentity11_.linkNoProxyJoin_id as linknop13_28_11_,
- testentity11_.linkSelect_id as linksel15_28_11_,
- testentity11_.name as name2_28_11_,
- testentity11_.version as version3_28_11_,
- testentity12_.link_id as link_id4_28_12_,
- testentity12_.linkJoin_id as linkjoin5_28_12_,
- testentity12_.linkLazy_id as linklazy6_28_12_,
- testentity12_.linkLazyJoin_id as linklazy7_28_12_,
- testentity12_.linkLazyNoProxyJoin_id as linklazy9_28_12_,
- testentity12_.linkLazySelect_id as linklaz11_28_12_,
- testentity12_.linkNoProxyJoin_id as linknop13_28_12_,
- testentity12_.linkSelect_id as linksel15_28_12_,
- testentity12_.name as name2_28_12_,
- testentity12_.version as version3_28_12_
- from
- loading_test testentity0_
- inner join
- loading_test testentity1_
- on testentity0_.link_id=testentity1_.id
- inner join
- loading_test testentity2_
- on testentity0_.linkSelect_id=testentity2_.id
- inner join
- loading_test testentity3_
- on testentity0_.linkJoin_id=testentity3_.id
- inner join
- loading_test testentity4_
- on testentity0_.linkNoProxy_id=testentity4_.id
- inner join
- loading_test testentity5_
- on testentity0_.linkNoProxySelect_id=testentity5_.id
- inner join
- loading_test testentity6_
- on testentity0_.linkNoProxyJoin_id=testentity6_.id
- inner join
- loading_test testentity7_
- on testentity0_.linkLazy_id=testentity7_.id
- inner join
- loading_test testentity8_
- on testentity0_.linkLazySelect_id=testentity8_.id
- inner join
- loading_test testentity9_
- on testentity0_.linkLazyJoin_id=testentity9_.id
- inner join
- loading_test testentity10_
- on testentity0_.linkLazyNoProxy_id=testentity10_.id
- inner join
- loading_test testentity11_
- on testentity0_.linkLazyNoProxySelect_id=testentity11_.id
- inner join
- loading_test testentity12_
- on testentity0_.linkLazyNoProxyJoin_id=testentity12_.id
- where
- testentity0_.id=203
- ######### test.reportInitializationState();
- ######### ================================================================================
- ######### #203:id-name-fetch Initialization State
- ######### --------------------------------------------------------------------------------
- ######### link: YES 12/12
- ######### linkJoin: YES 12/12
- ######### linkLazy: YES 12/12
- ######### linkLazyJoin: YES 12/12
- ######### linkLazyNoProxy: n/a 0/12
- ######### linkLazyNoProxyJoin: YES 12/12
- ######### linkLazyNoProxySelect: n/a 0/12
- ######### linkLazySelect: YES 12/12
- ######### linkNoProxy: n/a 0/12
- ######### linkNoProxyJoin: YES 12/12
- ######### linkNoProxySelect: n/a 0/12
- ######### linkSelect: YES 12/12
- ######### --------------------------------------------------------------------------------
- ######### #203:id-name-fetch Reflection State
- ######### --------------------------------------------------------------------------------
- ######### link: HERE 12/12
- ######### linkJoin: HERE 12/12
- ######### linkLazy: HERE 12/12
- ######### linkLazyJoin: HERE 12/12
- ######### linkLazyNoProxy: null 0/12
- ######### linkLazyNoProxyJoin: HERE 12/12
- ######### linkLazyNoProxySelect: null 0/12
- ######### linkLazySelect: HERE 12/12
- ######### linkNoProxy: null 0/12
- ######### linkNoProxyJoin: HERE 12/12
- ######### linkNoProxySelect: null 0/12
- ######### linkSelect: HERE 12/12
- ######### ================================================================================
- ######### test.printAll();
- ######### ================================================================================
- ######### #203:id-name-fetch
- ######### --------------------------------------------------------------------------------
- ######### link = #1:link
- ######### linkSelect = #2:linkSelect
- ######### linkJoin = #3:linkJoin
- Hibernate:
- select
- testentity_.linkLazyNoProxy_id as linklazy8_28_,
- testentity_.linkLazyNoProxySelect_id as linklaz10_28_,
- testentity_.linkNoProxy_id as linknop12_28_,
- testentity_.linkNoProxySelect_id as linknop14_28_
- from
- loading_test testentity_
- where
- testentity_.id=?
- ######### linkNoProxy = #5:linkNoProxy
- ######### linkNoProxySelect = #6:linkNoProxySelect
- ######### linkNoProxyJoin = #7:linkNoProxyJoin
- ######### linkLazy = #9:linkLazy
- ######### linkLazySelect = #10:linkLazySelect
- ######### linkLazyJoin = #11:linkLazyJoin
- ######### linkLazyNoProxy = #13:linkLazyNoProxy
- ######### linkLazyNoProxySelect = #14:linkLazyNoProxySelect
- ######### linkLazyNoProxyJoin = #15:linkLazyNoProxyJoin
- ######### ================================================================================
- ######### ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement