Collection has neither generic type or OneToMany.targetEntity() defined

    

    Collection has neither generic type or OneToMany.targetEntity() defined 

    在一對多雙向關聯關係裏,Set若是用泛型,就須要在@OneToMany指明targetEntity多方的實體類,要不就不要用泛型。
ide

相關文章
相關標籤/搜索