文章标题

来源:互联网 发布:淘宝加盟电话 编辑:程序博客网 时间:2024/05/21 09:10

hibernate+jpa报illegal Illegal attempt to map a non collection as a @OneToMany, @ManyToMany or @CollectionOfElements: 错误报错的信息
要把LinkedList<Card> list=new LinkedList<Card>();
LinkedList替换为List即可。List<Card> list=new LinkedList<Card>();
借鉴于博客:http://blog.csdn.net/liwennewil/article/details/52764894

0 0