基本上我想做的是编写这段SQL代码:
SELECT
CASE
WHEN t.type = 'a' THEN
t.name
ELSE
t.otherName
END
as "Name"
FROM myTable t
在QueryOver中