Spring Hql distinct Query查询多个字段以对象形式返回
?我们这样写的话返回的是Object[]数组。现在想让她返回ResourceBundle。需要改写成:
?这个时候domain必须要有一个构造方法:
public ResourceBundle(String country,String language){setCountry(country);setLanguage(language);}
发布时间: 2012-09-12 09:21:30 作者: rapoo
Spring Hql distinct Query查询多个字段以对象形式返回
?我们这样写的话返回的是Object[]数组。现在想让她返回ResourceBundle。需要改写成:
?这个时候domain必须要有一个构造方法:
public ResourceBundle(String country,String language){setCountry(country);setLanguage(language);}