hibernate中sorted collection和ordered collection区别

          1.  sorted collection是经过使用 javade Comparator在内存中进行排序的;           2.  ordered collection中的排序用的是数据库的order by子句。           对于比较大的数据集,为了不在内存中对它们进行排序而出现OutOfMemoryError,最好使用ordered collection.
相关文章
相关标签/搜索