Hibernate中的一对多治理set默认是怎样填充的

Hibernate中的一对多管理set默认是怎样填充的?在hibernate中,在双向导航中我们最习惯就是用java.util.Set,

Hibernate中的一对多管理set默认是怎样填充的?
在hibernate中,在双向导航中我们最习惯就是用java.util.Set,但是我发现个问题,比如
public class Company{
    private Set depts;

    public void setDepts(Set set)
    {
        this.depts=set;
    }

    public Set getDepts()
    {
        return depts;
    }
}

不知道在company装载完以后depts默认是根据什么排序的,我分别用了HashSet,TreeSet,LinkedHashSet,输出的排序都是一样的,那么请问怎样才能输出默认自定义排序呢?
1 楼 theone 2008-02-10  
set是无序的,你得用List