myeclipse 默认生成的查询函数是这样的
?
?
@SuppressWarnings("unchecked")
public List<AAA> findAll(final int... rowStartIdxAndCount) {
?
? ? //修改这句
? ? final String queryString = "select model from CardType model";
?
? ? // 将上面的语句修改即可
? ? final String queryString = "select model from CardType model order by bbb desc";;
?