如果保存设置一端的属性保存时,多端中一端的外键会设置为null。 Java代码 //多方: @ManyToOne(cascade=CascadeType.ALL) @JoinColumn(name=”cid”) public Classroom ...
確定! 回上一頁