select ttp.sid,ttp.name,
tp.sid,tp.value from
(select * from task_template_property
where tas_sid=(select tas_sid from task where sid='1')) ttp
left join (select * from task_property where tas_sid='1')
tp on tp.tas_sid2=tp.sid
这样的SQL怎么翻译成HQL?
select ttp.sid,ttp.name,
tp.sid,tp.value from
(select * from task_template_property
where tas_sid=(select tas_sid from task where sid='1')) ttp
left join (select * from task_property where tas_sid='1')
tp on tp.tas_sid2=tp.sid
这样的SQL怎么翻译成HQL?