首页 > 代码库 > Collection has neither generic type or OneToMany.targetEntity() defined

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

    

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

    在一对多双向关联关系里,Set如果用泛型,就需要在@OneToMany指明targetEntity多方的实体类,要不就不要用泛型。












本文出自 “路很长,又很短” 博客,请务必保留此出处http://10000001.blog.51cto.com/4600383/1429437