Spring-data-JPA清空OneToMany关系中Many一方的数据

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

相关文章
相关标签/搜索