Quote:
Asssuming the mappings have the association between the two tables using the serialNo and the 'id' is renamed to something else as its reserved in HQL.
I think what you said "Asssuming the mappings have the association between the two tables using the serialNo..." means they must have explicit association statement in their mapping files or others.
I just have mapping files contain their table schema only.
Primary key of table1 is serial_no, and table3 have serial_no and object_id.
So, table3 has composite key "id" contains serialNo and objectId.
If I need explict "join" statement or something in their mapping files to use "join" in hql.
That means I don't have primary(or base) knowledge about hibernate.
Hmm.. poor english and only one man( no other people around me interesting about hibernate). It takes long time to have practical skill even after used 9month!ㅡㅡ;
even I can't catch what you said " 'id' is renamed to something else..".
and your example code..
Code:
from table1 as sld1 left join sld1.table3 as sld3 WHERE sld3.idval.objectId = 'KKK' or sld3.idval.objectId is null
maybe incorrect. 'sld1.table3' what means? you mean like this?
Code:
from table1 as sld1 left join table3 as sld3 WHERE sld3.idval.objectId = 'KKK' or sld3.idval.objectId is null
sorry..as still newbie after nine month.. for can't understand what you said.