14:45:04.766 [main] DEBUG o.h.h.i.QueryTranslatorFactoryInitiator - QueryTranslatorFactory : org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory@3a60c416
14:45:04.766 [main] INFO o.h.h.i.QueryTranslatorFactoryInitiator - HHH000397: Using ASTQueryTranslatorFactory
14:45:04.792 [main] DEBUG o.h.h.i.ast.QueryTranslatorImpl - parse() - HQL: SELECT h from test.pandaadb.HibernateTest$Holder h LEFT JOIN FETCH TREAT (h.list AS HibernateTest$B) e
14:45:04.796 [main] DEBUG o.h.hql.internal.ast.HqlParser - Registering discovered request to treat(h.list as HibernateTest$B)
14:45:04.798 [main] DEBUG o.h.h.i.ast.QueryTranslatorImpl - --- HQL AST ---
\-[QUERY] Node: 'query'
\-[SELECT_FROM] Node: 'SELECT_FROM'
+-[FROM] Node: 'from'
| +-[RANGE] Node: 'RANGE'
| | +-[DOT] Node: '.'
| | | +-[DOT] Node: '.'
| | | | +-[IDENT] Node: 'test'
| | | | \-[IDENT] Node: 'pandaadb'
| | | \-[IDENT] Node: 'HibernateTest$Holder'
| | \-[ALIAS] Node: 'h'
| \-[JOIN] Node: 'JOIN'
| +-[LEFT] Node: 'LEFT'
| +-[FETCH] Node: 'FETCH'
| +-[DOT] Node: '.'
| | +-[IDENT] Node: 'h'
| | \-[IDENT] Node: 'list'
| \-[ALIAS] Node: 'e'
\-[SELECT] Node: 'SELECT'
\-[IDENT] Node: 'h'
14:45:04.799 [main] DEBUG o.h.hql.internal.ast.ErrorCounter - throwQueryException() : no errors
14:45:04.814 [main] DEBUG o.h.h.i.antlr.HqlSqlBaseWalker - select << begin [level=1, statement=select]
14:45:04.822 [main] DEBUG o.h.h.internal.ast.tree.FromElement - FromClause{level=1} : test.pandaadb.HibernateTest$Holder (h) -> hibernatet0_
14:45:04.823 [main] DEBUG o.h.h.i.ast.tree.FromReferenceNode - Resolved : h -> hibernatet0_.holderId
14:45:04.824 [main] DEBUG o.h.hql.internal.ast.tree.DotNode - getDataType() : list -> org.hibernate.type.BagType(test.pandaadb.HibernateTest$Holder.list)
14:45:04.825 [main] DEBUG o.h.h.i.ast.tree.FromElementFactory - createEntityAssociation() : One to many - path = h.list role = test.pandaadb.HibernateTest$Holder.list associatedEntityName = test.pandaadb.HibernateTest$A
14:45:04.826 [main] DEBUG o.h.h.internal.ast.tree.FromElement - FromClause{level=1} : test.pandaadb.HibernateTest$A (e) -> list1_
14:45:04.826 [main] DEBUG o.h.hql.internal.ast.tree.FromClause - addJoinByPathMap() : h.list -> FromElement{explicit,not a collection join,not a fetch join,fetch non-lazy properties,classAlias=e,role=null,tableName=HibernateTest$A,tableAlias=list1_,origin=HibernateTest$Holder hibernatet0_,columns={hibernatet0_.holderId ,className=test.pandaadb.HibernateTest$A}}
14:45:04.826 [main] DEBUG o.h.hql.internal.ast.tree.DotNode - dereferenceCollection() : Created new FROM element for h.list : HibernateTest$A list1_
14:45:04.826 [main] DEBUG o.h.h.i.ast.tree.FromReferenceNode - Resolved : h.list -> .
14:45:04.827 [main] DEBUG o.h.hql.internal.ast.HqlSqlWalker - createFromJoinElement() : -- join tree --
\-[JOIN_FRAGMENT] FromElement: 'HibernateTest$A list1_' FromElement{explicit,not a collection join,fetch join,fetch non-lazy properties,classAlias=e,role=test.pandaadb.HibernateTest$Holder.list,tableName=HibernateTest$A,tableAlias=list1_,origin=HibernateTest$Holder hibernatet0_,columns={hibernatet0_.holderId ,className=test.pandaadb.HibernateTest$A}}
14:45:04.827 [main] DEBUG o.h.h.i.ast.tree.FromReferenceNode - Resolved : h -> hibernatet0_.holderId
14:45:04.828 [main] DEBUG o.h.h.i.antlr.HqlSqlBaseWalker - select : finishing up [level=1, statement=select]
14:45:04.828 [main] DEBUG o.h.hql.internal.ast.HqlSqlWalker - processQuery() : ( SELECT ( {select clause} hibernatet0_.holderId ) ( FromClause{level=1} ( HibernateTest$Holder hibernatet0_ HibernateTest$A list1_ ) ) )
14:45:04.832 [main] DEBUG o.h.h.i.ast.util.JoinProcessor - Using FROM fragment [HibernateTest$Holder hibernatet0_]
14:45:04.832 [main] DEBUG o.h.h.i.ast.util.JoinProcessor - Using FROM fragment [left outer join HibernateTest$A list1_ on hibernatet0_.holderId=list1_.subclassId left outer join HibernateTest$C list1_1_ on list1_.id=list1_1_.id left outer join HibernateTest$B list1_2_ on list1_.id=list1_2_.id]
14:45:04.833 [main] DEBUG o.h.h.i.antlr.HqlSqlBaseWalker - select >> end [level=1, statement=select]
14:45:04.833 [main] DEBUG o.h.h.i.ast.QueryTranslatorImpl - --- SQL AST ---
\-[SELECT] QueryNode: 'SELECT' querySpaces (HibernateTest$Holder,HibernateTest$A)
+-[SELECT_CLAUSE] SelectClause: '{select clause}'
| +-[ALIAS_REF] IdentNode: 'hibernatet0_.holderId as holderId1_3_0_' {alias=h, className=test.pandaadb.HibernateTest$Holder, tableAlias=hibernatet0_}
| +-[SELECT_EXPR] SelectExpressionImpl: 'list1_.id as id1_0_1_' {FromElement{explicit,not a collection join,fetch join,fetch non-lazy properties,classAlias=e,role=test.pandaadb.HibernateTest$Holder.list,tableName=HibernateTest$A,tableAlias=list1_,origin=HibernateTest$Holder hibernatet0_,columns={hibernatet0_.holderId ,className=test.pandaadb.HibernateTest$A}}}
| +-[SQL_TOKEN] SqlFragment: 'list1_.subclassId as subclass2_0_1_, list1_1_.prop2 as prop1_2_1_, list1_2_.prop1 as prop1_1_1_, case when list1_1_.id is not null then 1 when list1_2_.id is not null then 2 when list1_.id is not null then 0 end as clazz_1_'
| \-[SQL_TOKEN] SqlFragment: 'list1_.subclassId as subclass2_0_0__, list1_.id as id1_0_0__'
\-[FROM] FromClause: 'from' FromClause{level=1, fromElementCounter=2, fromElements=2, fromElementByClassAlias=[e, h], fromElementByTableAlias=[hibernatet0_, list1_], fromElementsByPath=[h.list], collectionJoinFromElementsByPath=[], impliedElements=[]}
\-[FROM_FRAGMENT] FromElement: 'HibernateTest$Holder hibernatet0_' FromElement{explicit,not a collection join,not a fetch join,fetch non-lazy properties,classAlias=h,role=null,tableName=HibernateTest$Holder,tableAlias=hibernatet0_,origin=null,columns={,className=test.pandaadb.HibernateTest$Holder}}
\-[JOIN_FRAGMENT] FromElement: 'left outer join HibernateTest$A list1_ on hibernatet0_.holderId=list1_.subclassId left outer join HibernateTest$C list1_1_ on list1_.id=list1_1_.id left outer join HibernateTest$B list1_2_ on list1_.id=list1_2_.id' FromElement{explicit,not a collection join,fetch join,fetch non-lazy properties,classAlias=e,role=test.pandaadb.HibernateTest$Holder.list,tableName=HibernateTest$A,tableAlias=list1_,origin=HibernateTest$Holder hibernatet0_,columns={hibernatet0_.holderId ,className=test.pandaadb.HibernateTest$A}}
14:45:04.833 [main] DEBUG o.h.hql.internal.ast.ErrorCounter - throwQueryException() : no errors
14:45:04.838 [main] DEBUG o.h.h.i.ast.QueryTranslatorImpl - HQL: SELECT h from test.pandaadb.HibernateTest$Holder h LEFT JOIN FETCH TREAT (h.list AS HibernateTest$B) e
14:45:04.838 [main] DEBUG o.h.h.i.ast.QueryTranslatorImpl - SQL: select hibernatet0_.holderId as holderId1_3_0_, list1_.id as id1_0_1_, list1_.subclassId as subclass2_0_1_, list1_1_.prop2 as prop1_2_1_, list1_2_.prop1 as prop1_1_1_, case when list1_1_.id is not null then 1 when list1_2_.id is not null then 2 when list1_.id is not null then 0 end as clazz_1_, list1_.subclassId as subclass2_0_0__, list1_.id as id1_0_0__ from HibernateTest$Holder hibernatet0_ left outer join HibernateTest$A list1_ on hibernatet0_.holderId=list1_.subclassId left outer join HibernateTest$C list1_1_ on list1_.id=list1_1_.id left outer join HibernateTest$B list1_2_ on list1_.id=list1_2_.id
14:45:04.838 [main] DEBUG o.h.hql.internal.ast.ErrorCounter - throwQueryException() : no errors
14:45:04.846 [main] DEBUG org.hibernate.SQL - select hibernatet0_.holderId as holderId1_3_0_, list1_.id as id1_0_1_, list1_.subclassId as subclass2_0_1_, list1_1_.prop2 as prop1_2_1_, list1_2_.prop1 as prop1_1_1_, case when list1_1_.id is not null then 1 when list1_2_.id is not null then 2 when list1_.id is not null then 0 end as clazz_1_, list1_.subclassId as subclass2_0_0__, list1_.id as id1_0_0__ from HibernateTest$Holder hibernatet0_ left outer join HibernateTest$A list1_ on hibernatet0_.holderId=list1_.subclassId left outer join HibernateTest$C list1_1_ on list1_.id=list1_1_.id left outer join HibernateTest$B list1_2_ on list1_.id=list1_2_.id
Hibernate: select hibernatet0_.holderId as holderId1_3_0_, list1_.id as id1_0_1_, list1_.subclassId as subclass2_0_1_, list1_1_.prop2 as prop1_2_1_, list1_2_.prop1 as prop1_1_1_, case when list1_1_.id is not null then 1 when list1_2_.id is not null then 2 when list1_.id is not null then 0 end as clazz_1_, list1_.subclassId as subclass2_0_0__, list1_.id as id1_0_0__ from HibernateTest$Holder hibernatet0_ left outer join HibernateTest$A list1_ on hibernatet0_.holderId=list1_.subclassId left outer join HibernateTest$C list1_1_ on list1_.id=list1_1_.id left outer join HibernateTest$B list1_2_ on list1_.id=list1_2_.id
14:45:04.848 [main] DEBUG org.hibernate.loader.Loader - Result set row: 0
14:45:04.848 [main] DEBUG org.hibernate.loader.Loader - Result row: EntityKey[test.pandaadb.HibernateTest$Holder#cee5414c-6d12-4080-994c-eb2c8b2721c9], EntityKey[test.pandaadb.HibernateTest$A#69d1383a-3b88-4781-b894-03f226f40e52]
14:45:04.848 [main] DEBUG org.hibernate.loader.Loader - Found row of collection: [test.pandaadb.HibernateTest$Holder.list#cee5414c-6d12-4080-994c-eb2c8b2721c9]
14:45:04.848 [main] DEBUG org.hibernate.loader.Loader - Result set row: 1
14:45:04.848 [main] DEBUG org.hibernate.loader.Loader - Result row: EntityKey[test.pandaadb.HibernateTest$Holder#cee5414c-6d12-4080-994c-eb2c8b2721c9], EntityKey[test.pandaadb.HibernateTest$A#26e18799-8fce-4e74-8236-bcbfad1d15ab]
14:45:04.849 [main] DEBUG org.hibernate.loader.Loader - Found row of collection: [test.pandaadb.HibernateTest$Holder.list#cee5414c-6d12-4080-994c-eb2c8b2721c9]
14:45:04.849 [main] DEBUG org.hibernate.loader.Loader - Result set row: 2
14:45:04.849 [main] DEBUG org.hibernate.loader.Loader - Result row: EntityKey[test.pandaadb.HibernateTest$Holder#cee5414c-6d12-4080-994c-eb2c8b2721c9], EntityKey[test.pandaadb.HibernateTest$A#f9e43150-f1a3-4112-8059-2f785aa8d5d7]
14:45:04.849 [main] DEBUG org.hibernate.loader.Loader - Found row of collection: [test.pandaadb.HibernateTest$Holder.list#cee5414c-6d12-4080-994c-eb2c8b2721c9]
14:45:04.849 [main] DEBUG o.h.engine.internal.TwoPhaseLoad - Resolving associations for [test.pandaadb.HibernateTest$Holder#cee5414c-6d12-4080-994c-eb2c8b2721c9]
14:45:04.849 [main] DEBUG o.h.engine.internal.TwoPhaseLoad - Done materializing entity [test.pandaadb.HibernateTest$Holder#cee5414c-6d12-4080-994c-eb2c8b2721c9]
14:45:04.849 [main] DEBUG o.h.engine.internal.TwoPhaseLoad - Resolving associations for [test.pandaadb.HibernateTest$A#69d1383a-3b88-4781-b894-03f226f40e52]
14:45:04.849 [main] DEBUG o.h.engine.internal.TwoPhaseLoad - Done materializing entity [test.pandaadb.HibernateTest$A#69d1383a-3b88-4781-b894-03f226f40e52]
14:45:04.849 [main] DEBUG o.h.engine.internal.TwoPhaseLoad - Resolving associations for [test.pandaadb.HibernateTest$B#26e18799-8fce-4e74-8236-bcbfad1d15ab]
14:45:04.849 [main] DEBUG o.h.engine.internal.TwoPhaseLoad - Done materializing entity [test.pandaadb.HibernateTest$B#26e18799-8fce-4e74-8236-bcbfad1d15ab]
14:45:04.849 [main] DEBUG o.h.engine.internal.TwoPhaseLoad - Resolving associations for [test.pandaadb.HibernateTest$C#f9e43150-f1a3-4112-8059-2f785aa8d5d7]
14:45:04.849 [main] DEBUG o.h.engine.internal.TwoPhaseLoad - Done materializing entity [test.pandaadb.HibernateTest$C#f9e43150-f1a3-4112-8059-2f785aa8d5d7]
14:45:04.849 [main] DEBUG o.h.e.l.i.CollectionLoadContext - 1 collections were found in result set for role: test.pandaadb.HibernateTest$Holder.list
14:45:04.849 [main] DEBUG o.h.e.l.i.CollectionLoadContext - Collection fully initialized: [test.pandaadb.HibernateTest$Holder.list#cee5414c-6d12-4080-994c-eb2c8b2721c9]
14:45:04.849 [main] DEBUG o.h.e.l.i.CollectionLoadContext - 1 collections initialized for role: test.pandaadb.HibernateTest$Holder.list
test.pandaadb.HibernateTest$A
test.pandaadb.HibernateTest$B
test.pandaadb.HibernateTest$C
test.pandaadb.HibernateTest$A
test.pandaadb.HibernateTest$B
test.pandaadb.HibernateTest$C
test.pandaadb.HibernateTest$A
test.pandaadb.HibernateTest$B
test.pandaadb.HibernateTest$C