hi,
i'm using createQuery("select...") for my project, i have a situation using left Outer join,
compare with left table non primary key column and right table primary key column,
Tables as follows
Code:
Table A
Primary Key ->AA
AA BB CC
1 xxx 9999
2 yyy 8888
3 zzz 8888
Table B
Primary Key->EEE
Foreign Key ->AA
EEE FFF AA
9999 ttt 1
8888 uuu 2
5555 yyy 3
6666 eee 4
Table A
AA --> Mapped as one to Many
Table B
EEE --> Mapped as one to many
AA --> Mapped as Many to one
I need to write Query like this
createQuery(" from A left outer join B on A.CC=B.EEE");
In hibernate how can i solve It, i need some help,
thank,