码迷,mamicode.com
首页 > Web开发 > 详细

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

时间:2014-06-22 10:09:21      阅读:356      评论:0      收藏:0      [点我收藏+]

标签: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

Collection has neither generic type or OneToMany.targetEntity() defined,布布扣,bubuko.com

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

标签:collection has neither generic type or onetomany.targetentity() defined

原文地址:http://10000001.blog.51cto.com/4600383/1429437

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!