摘要:
hibernate 中对set对象的两种配置方法:(一)使用order-by对set排序,只需要修改set设置:<set name="standards" ... order-by="st_id desc" > ...</set> //注意:st_id必须是数据表里的字段名,不能使类里的属性名 //使用order-by,实质是hibernate自动在查询语句后面添加order by ...语句。//private Set<AsStandard> standards = new HashSet<AsStandard 阅读全文
posted @ 2012-11-19 18:28
雨心竹
阅读(2698)
评论(0)
推荐(0)

浙公网安备 33010602011771号