select t.*
from talk t
where t.user_id = 2
Union
select t.*
from talk t, user_contact c
where c.user_id = 2 and c.contact_type = 1 and c.be_user_id = t.user_id
I don"t want to use Union and I don"t want to weigh it. Is there the easiest way to write it?
hibernate does not support Union
Canbe implemented using inner and left connections?