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/12/22 11:56:10
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个