OneToMany ; import javax.persistence.Table; @Entity ... @OneToMany(cascade=CascadeType.ALL) ... 在查詢時,要注意的是,@OneToMany預設的Fetch模式是FetchType.
確定! 回上一頁