首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Eclipse开发 >

myeclipse 生成 ejb3 查询话语 的逆向 排序

2012-11-07 
myeclipse 生成 ejb3 查询语句 的逆向 排序myeclipse 默认生成的查询函数是这样的??@SuppressWarnings(un

myeclipse 生成 ejb3 查询语句 的逆向 排序

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";;

?

热点排行