hibernate中sorted collection和ordered collection區別

          1.  sorted collection是經過使用 javade Comparator在內存中進行排序的;           2.  ordered collection中的排序用的是數據庫的order by子句。           對於比較大的數據集,爲了不在內存中對它們進行排序而出現OutOfMemoryError,最好使用ordered collection.
相關文章
相關標籤/搜索