Spring-data-JPA清空OneToMany關係中Many一方的數據

parent.getChildren().clear(); //getChildren()返回了一個受管的List parentRepository.save(parent);get

相關文章
相關標籤/搜索