select
organizati0_.ID as ID0_1_,
organizati0_.ORGANIZATION_NAME as ORGANIZA2_0_1_,
organizati0_.ORGANIZATION_SN as ORGANIZA3_0_1_,
organizati0_.DESCRIPTION as DESCRIPT4_0_1_,
organizati0_.PID as PID0_1_,
organizati0_.ORGANIZATION_TEL as ORGANIZA6_0_1_,
organizati0_.ORDER_NUM as ORDER7_0_1_,
organizati0_.PERSON_ID as PERSON8_0_1_,
childern1_.PID as PID3_,
childern1_.ID as ID3_,
childern1_.ID as ID0_0_,
childern1_.ORGANIZATION_NAME as ORGANIZA2_0_0_,
childern1_.ORGANIZATION_SN as ORGANIZA3_0_0_,
childern1_.DESCRIPTION as DESCRIPT4_0_0_,
childern1_.PID as PID0_0_,
childern1_.ORGANIZATION_TEL as ORGANIZA6_0_0_,
childern1_.ORDER_NUM as ORDER7_0_0_,
childern1_.PERSON_ID as PERSON8_0_0_
from
g_organization organizati0_
left outer join
g_organization childern1_
on organizati0_.ID=childern1_.PID
where
organizati0_.ID=?
Hibernate:
select
organizati0_.ID as ID0_1_,
organizati0_.ORGANIZATION_NAME as ORGANIZA2_0_1_,
organizati0_.ORGANIZATION_SN as ORGANIZA3_0_1_,
organizati0_.DESCRIPTION as DESCRIPT4_0_1_,
organizati0_.PID as PID0_1_,
organizati0_.ORGANIZATION_TEL as ORGANIZA6_0_1_,
organizati0_.ORDER_NUM as ORDER7_0_1_,
organizati0_.PERSON_ID as PERSON8_0_1_,
childern1_.PID as PID3_,
childern1_.ID as ID3_,
childern1_.ID as ID0_0_,
childern1_.ORGANIZATION_NAME as ORGANIZA2_0_0_,
childern1_.ORGANIZATION_SN as ORGANIZA3_0_0_,
childern1_.DESCRIPTION as DESCRIPT4_0_0_,
childern1_.PID as PID0_0_,
childern1_.ORGANIZATION_TEL as ORGANIZA6_0_0_,
childern1_.ORDER_NUM as ORDER7_0_0_,
childern1_.PERSON_ID as PERSON8_0_0_
from
g_organization organizati0_
left outer join
g_organization childern1_
on organizati0_.ID=childern1_.PID
where
organizati0_.ID=?