如何在QueryDSL中从不同的表中进行联合

时间:2017-11-24 17:25:01

标签: querydsl

我的问题很简单,如何使用SQL QueryDSL从不同的表中进行选择 例如

SELECT cat.name as name, cat.voice as voice , cat.purr FROM cat UNION
SELECT dog.name as name, dog.voice as voice , NULL as voice FROM dog;

0 个答案:

没有答案