
JPA
文章平均质量分 84
iteye_17584
这个作者很懒,什么都没留下…
展开
-
JPA自关联 OneToMany小issue 《已解决》
PS: 答案感谢 jinnianshilongnian同学,终于找到问题所以。 发现其实不是自关联的问题,所有的关系都是一样的存在这样的问题,只要注意一下就可避免。问题出在:Java persistence 允许两种注解方式去与数据库的table作映射: field和property .经过测试,这两种方式是不能混着用的, 如果你选择在field上注解就不要再在get...原创 2012-08-23 11:51:02 · 549 阅读 · 0 评论 -
using collections in Entity Fields and Properties(映射集合类到数据库)
Using Collections in Entity Fields and PropertiesCollection-valued persistent fields and properties must use the supported Java collectioninterfaces regardless of whether the entity uses pe...原创 2012-08-24 14:22:20 · 122 阅读 · 0 评论