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