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 · 1625 阅读 · 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 · 1342 阅读 · 0 评论