JPA
feng132feng
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
javax.persistence.EntityNotFoundException: Unable to find XXXX with id 0 问题原因
[color=red]错误信息:[/color] javax.persistence.EntityNotFoundException: Unable to find XXXX with id 0 问题原因 原因: 无论是@OneToOne 还是@ManyToOne,出现这个原因都是因为子表(被关联表)中没有主表(关联表)中ID所对应的记录。 [color=...原创 2015-07-02 12:53:48 · 1710 阅读 · 0 评论 -
POST http://localhost:8080/admin/getPageDiseaseList net::ERR_INCOMPLETE_CHUNKED_
[color=red]错误信息:[/color] net::ERR_INCOMPLETE_CHUNKED_ENCODING JPA中多对多关系转JSON时出现重复嵌套 死循环 [color=red]解决办法:[/color] 在其中一个多对多上加注解@JsonIgnore 或者重新定义一个相同的实体类,里面没有jpa注解等,查询出来的原实体信息在转json前,...原创 2015-07-08 10:01:33 · 1423 阅读 · 0 评论
分享