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

    

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

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












發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章