当前位置:网站首页>Solve the problem of @onetomany query falling into circular reference
Solve the problem of @onetomany query falling into circular reference
2022-07-27 12:09:00 【H_ Dsheng】
solve @OneToMany Query caught in circular reference problem
The error report of the problem is as follows :

The main information is :wrapping Result set representing update count of 4>
as well as :exception [Request processing failed; nested exception is java.lang.NullPointerException] with root cause
The original configuration :

The reason for the error is that both classes use the method of urgent loading , It will cause the entity class that has been looking for foreign keys to fall into a loop , To report a mistake .
Solution : Change to as needed LAZY that will do
@OneToMany( fetch = FetchType.LAZY)
success result:
Reference material :https://www.v2ex.com/t/541510
I've tried to annotate it , But it didn't solve my problem , It turned out to be fetch The problem of .
边栏推荐
- mysql分页查询实例_mysql分页查询实例讲解「建议收藏」
- EfficientNet
- The configuration change removed the routing filter, and the distributed router was overwhelmed: the Canadian network was paralyzed
- matlab二分法例题(用二分法求零点例题)
- Arduino常见供电问题与解决
- Write and read system temporary files: createtempfile and tempfilecontent[easy to understand]
- 源码编译安装LAMP
- JS string method summary
- 象棋机器人「弄折了」棋童的手指。。。
- Guangdong's finance has taken many measures to help stabilize the "ballast stone" of food security
猜你喜欢

孤独的年轻人,戒不了Jellycat

Proteus8专业版破解后用数码管闪退的解决

Regular expression of shell programming (grep of shell script text three swordsmen)

Solution of digital tube flash back after proteus8 professional version cracking

MATLAB画带延时系统的伯德图

TLC549Proteus仿真&Sallen-Key滤波器&AD736Vrms到DC转换&Proteus查看51寄存器值

Newton Raphson iterative method

Principle of PWM and generation of PWM wave

Weibo comment crawler + visualization

解决方案:idea project没有显示树状图
随机推荐
Pytorch shows the summary like tensorflow
Principle of control system based on feedback rate
Strictly control outdoor operation time! Foshan housing and Urban Rural Development Bureau issued a document: strengthening construction safety management during high temperature
解决方案:Can not issue executeUpdate() or executeLargeUpdate() for SELECTs
[machine learning whiteboard derivation series] learning notes --- conditional random fields
Detailed explanation of MATLAB S-function
PWM的原理和PWM波的产生
系统临时文件的写和读:createTempFile和tempFileContent[通俗易懂]
V-show failure
I do live e-commerce in tiktok, UK
USB network card drive data stream
Unity shader - Laser special effect shader[easy to understand]
Regular expression of shell programming (grep of shell script text three swordsmen)
53 亿 BI 市场 TOP 10:帆软、微软、永洪、SAP、百度、IBM、SAS、思迈特、Salesforce、浪潮通软
[网摘][医学影像] 常用的DICOM缩略图解释以及Viewer converter 转换工具
The bank's face recognition system was broken: a depositor was stolen 430000 yuan
Matlab draws Bode diagram with time delay system
In the first half of the year, the number of fires decreased by 27.7%. Guangdong will improve the fire safety quality of the whole people in this way
B 站 713 事故后的多活容灾建设|TakinTalks 大咖分享
MATLAB画带延时系统的伯德图