关于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

猜你喜欢

转载自nddjava.iteye.com/blog/1489669