Since you have a bidirectional one-to-many relathionship, you need to use mappedBy: @OneToMany(fetch=FetchType.EAGER, mappedBy = "device") public List ...
確定! 回上一頁