select * from (select companyInfo.subject,companyInfo.guId from CompanyInfo companyInfo where companyInfo.type='企業動態' order by companyInfo.startDate desc ) a union all select * from (select infos.subject,infos.guId from Infos infos,Category category where category.categoryName='園區動態' and infos.categoryId=category.guId order by infos.startDate desc ) b
這段sql怎麼改成hql啊 謝謝