0
tableA
------
Aprimarykey,
Afield1,
Afield2,
AfieldtoMatch
tableB
------
Bprimarykey,
Bfield1,
Bfield2,
BfieldtoMatch
表之間沒有關係。如果我需要下列結果,那麼類和hbm文件會是什麼樣子?nhibernate加入表之間沒有任何關係
select distinct tableA.Afield1, tableA.Afield2,tableA.AfieldMatch tableB.Bfield1,tableB.Bfield1
from tableA innerjoin tableB on tableA.AfieldtoMatch=tableB.Bmatchfield