Hi all, Is it possible to create single domain with single hbm for two or more tables that are related by a primary key? For example, consider i have three tables: t1(colx-primary, coly), t2(colm-Ref-t1-colx,coln), t3(cola-Ref-t2-coln, colb, colc) my domain(POJO) doesnot require every column from every table, so here my only pojo is like: class mydomain{ type colx, type coln, type colc } i have to use only one hbm file. guys please help me to solve it. i am trying it for the past one week without any success. plz Thanks!
|