public List findAll(OrderBy...里的OrderBy...啥意思?刚开始接触hib3public List findAll(OrderBy...orders) {Criteria crit = createCriteria();if (orders = null) {for (OrderBy order :orders) {crit.addOrder(order.getOrder());}}return crit.list();}
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/20 15:19:43
public List findAll(OrderBy...里的OrderBy...啥意思?刚开始接触hib3public List findAll(OrderBy...orders) {Criteria crit = createCriteria();if (orders = null) {for (OrderBy order :orders) {crit.addOrder(order.getOrder());}}return crit.list();}
public List findAll(OrderBy...里的OrderBy...啥意思?
刚开始接触hib3
public List findAll(OrderBy...orders) {
Criteria crit = createCriteria();
if (orders = null) {
for (OrderBy order :orders) {
crit.addOrder(order.getOrder());
}
}
return crit.list();
}
public List findAll(OrderBy...里的OrderBy...啥意思?刚开始接触hib3public List findAll(OrderBy...orders) {Criteria crit = createCriteria();if (orders = null) {for (OrderBy order :orders) {crit.addOrder(order.getOrder());}}return crit.list();}
可变参数,表示可以放多个OrderBy的对象,包括0个