Spring Hql distinct Query查询多个字段以对象模式返回

Spring Hql distinct Query查询多个字段以对象形式返回?我们这样写的话返回的是Object[]数组。现在想让她返

Spring Hql distinct Query查询多个字段以对象形式返回

?我们这样写的话返回的是Object[]数组。现在想让她返回ResourceBundle。需要改写成:

?

这个时候domain必须要有一个构造方法:

public ResourceBundle(String country,String language){setCountry(country);setLanguage(language);}