关于hibernate中运用all-delete-orphan的用法

关于hibernate中使用all-delete-orphan的用法public SetCPBid getBids() {return Collections.unmodifia

关于hibernate中使用all-delete-orphan的用法
public Set<CPBid> getBids() {       
         return Collections.unmodifiableSet(bids);       
    }  
SuppressWarnings("unused")       
private void setBids(Set<CPBid> bids) {       
         this.bids = bids;       
}
把set设置成private