DEBUG - HQL: select customerContact
from com.XXX.customer.entity.CustomerContact customerContact
left join fetch customerContact.contactAddress
left join fetch customerContact.contactProfile
where customerContact.companyNumber = ?1 and customerContact.customerNumber = ?2
order by customerContact.contactSequence asc
DEBUG - --- HQL AST ---
\-[QUERY] Node: 'query'
+-[SELECT_FROM] Node: 'SELECT_FROM'
| +-[FROM] Node: 'from'
| | +-[RANGE] Node: 'RANGE'
| | | +-[DOT] Node: '.'
| | | | +-[DOT] Node: '.'
| | | | | +-[DOT] Node: '.'
| | | | | | +-[DOT] Node: '.'
| | | | | | | +-[IDENT] Node: 'com'
| | | | | | | \-[IDENT] Node: 'XXX'
| | | | | | \-[IDENT] Node: 'customer'
| | | | | \-[IDENT] Node: 'entity'
| | | | \-[IDENT] Node: 'CustomerContact'
| | | \-[ALIAS] Node: 'customerContact'
| | +-[JOIN] Node: 'join'
| | | +-[LEFT] Node: 'left'
| | | +-[FETCH] Node: 'fetch'
| | | \-[DOT] Node: '.'
| | | +-[IDENT] Node: 'customerContact'
| | | \-[IDENT] Node: 'contactAddress'
| | \-[JOIN] Node: 'join'
| | +-[LEFT] Node: 'left'
| | +-[FETCH] Node: 'fetch'
| | \-[DOT] Node: '.'
| | +-[IDENT] Node: 'customerContact'
| | \-[IDENT] Node: 'contactProfile'
| \-[SELECT] Node: 'select'
| \-[IDENT] Node: 'customerContact'
+-[WHERE] Node: 'where'
| \-[AND] Node: 'and'
| +-[EQ] Node: '='
| | +-[DOT] Node: '.'
| | | +-[IDENT] Node: 'customerContact'
| | | \-[IDENT] Node: 'companyNumber'
| | \-[PARAM] Node: '?'
| | \-[NUM_INT] Node: '1'
| \-[EQ] Node: '='
| +-[DOT] Node: '.'
| | +-[IDENT] Node: 'customerContact'
| | \-[IDENT] Node: 'customerNumber'
| \-[PARAM] Node: '?'
| \-[NUM_INT] Node: '2'
\-[ORDER] Node: 'order'
+-[DOT] Node: '.'
| +-[IDENT] Node: 'customerContact'
| \-[IDENT] Node: 'contactSequence'
\-[ASCENDING] Node: 'asc'
DEBUG - SQL: select customerco0_.M0QMNB as M1_5_0_, customerco1_.MYSEQN as MYSEQN6_1_, customerco1_.MYADDC as MYADDC6_1_, customerco1_.MYCONO as MYCONO6_1_, customerco2_.M1P9CD as M1_7_2_, customerco2_.M1QMNB as M2_7_2_, customerco2_.M1CONO as M3_7_2_, customerco0_.M0P9CD as M2_5_0_, customerco0_.M0CONO as M3_5_0_, customerco0_.M0ADSQ as M4_5_0_, customerco0_.M0CNTI as M5_5_0_, customerco0_.M0JATX as M6_5_0_, customerco0_.M0I9TX as M7_5_0_, customerco0_.M0MDIN as M8_5_0_, customerco1_.MYCITY as MYCITY6_1_, customerco1_.MYNQTX as MYNQTX6_1_, customerco1_.MYADD1 as MYADD6_6_1_, customerco1_.MYADD2 as MYADD7_6_1_, customerco1_.MYH2CD as MYH8_6_1_, customerco1_.MYZIPC as MYZIPC6_1_, customerco2_.M1EMAD as M4_7_2_, customerco2_.M1EMMF as M5_7_2_ from MKP30 customerco0_ left outer join MKP70 customerco1_ on customerco0_.M0ADSQ=customerco1_.MYSEQN and customerco0_.M0P9CD=customerco1_.MYADDC and customerco0_.M0CONO=customerco1_.MYCONO left outer join MKP35 customerco2_ on customerco0_.M0P9CD=customerco2_.M1P9CD and customerco0_.M0QMNB=customerco2_.M1QMNB and customerco0_.M0CONO=customerco2_.M1CONO where customerco0_.M0CONO=? and customerco0_.M0P9CD=? order by customerco0_.M0QMNB asc
DEBUG - Result set row: 0
DEBUG - Result row: EntityKey[com.XXX.customer.entity.CustomerContact#component[contactSequence]{contactSequence=1}], null, EntityKey[com.XXX.customer.entity.CustomerContactProfile#component[customerNumber,contactSequence,companyNumber]{contactSequence=1, companyNumber=01, customerNumber= 103048}]
DEBUG - Result set row: 1
DEBUG - Result row: EntityKey[com.XXX.customer.entity.CustomerContact#component[contactSequence]{contactSequence=2}], null, EntityKey[com.XXX.customer.entity.CustomerContactProfile#component[customerNumber,contactSequence,companyNumber]{contactSequence=2, companyNumber=01, customerNumber= 103048}]
DEBUG - Result set row: 2
DEBUG - Result row: EntityKey[com.XXX.customer.entity.CustomerContact#component[contactSequence]{contactSequence=3}], null, EntityKey[com.XXX.customer.entity.CustomerContactProfile#component[customerNumber,contactSequence,companyNumber]{contactSequence=3, companyNumber=01, customerNumber= 103048}]
DEBUG - Result set row: 3
.
.
.
DEBUG - Result set row: 3812
DEBUG - Result row: EntityKey[com.XXX.customer.entity.CustomerContact#component[contactSequence]{contactSequence=3813}], null, EntityKey[com.XXX.customer.entity.CustomerContactProfile#component[customerNumber,contactSequence,companyNumber]{contactSequence=3813, companyNumber=01, customerNumber= 103048}]
DEBUG - Resolving associations for [com.XXX.customer.entity.CustomerContact#component[contactSequence]{contactSequence=1}]
DEBUG - Loading entity: [com.XXX.customer.entity.CustomerContactAddress#component[sequence,customerNumber,companyNumber]{sequence=0, companyNumber=01, customerNumber= 103048}]
DEBUG - select customerco0_.MYSEQN as MYSEQN6_0_, customerco0_.MYADDC as MYADDC6_0_, customerco0_.MYCONO as MYCONO6_0_, customerco0_.MYCITY as MYCITY6_0_, customerco0_.MYNQTX as MYNQTX6_0_, customerco0_.MYADD1 as MYADD6_6_0_, customerco0_.MYADD2 as MYADD7_6_0_, customerco0_.MYH2CD as MYH8_6_0_, customerco0_.MYZIPC as MYZIPC6_0_ from MKP70 customerco0_ where customerco0_.MYSEQN=? and customerco0_.MYADDC=? and customerco0_.MYCONO=?
DEBUG - Done entity load