VIRGIN FOREST OF JAVA
不要埋头苦干,要学习,学习,再学习。。。。。
powered by R.Zeus

Set in hibernate sort all elements by cast the field set to org.hibernate.type.SortedSetType,which wrap the  java.util.SortedSet when persite In the SortedSetType.wrap(SessionImplementor session, Object collection).
it 
return new PersistentSortedSet( session, (java.util.SortedSet) collection ); so if you wanted the set sortable,
must use the class that implements the
java.util.SortedSet ,and in java.util package,TreeSet  is  validated.
if use HashSet ,you will get error report always in insert time.

posted on 2006-08-31 15:26 R.Zeus 阅读(233) 评论(0)  编辑  收藏 所属分类: Hibernate

只有注册用户登录后才能发表评论。


网站导航: