当前位置:网站首页>Record some bugs encountered - when mapstruct and lombok are used at the same time, the problem of data loss when converting entity classes
Record some bugs encountered - when mapstruct and lombok are used at the same time, the problem of data loss when converting entity classes
2022-08-03 04:05:00 【Ye Buxiu 233】
Record some bugs encountered - when mapstruct and lombok are used at the same time, the problem of data loss when converting entity classes
I. Questions
When using mapstruct to convert the entity class, it is found that the converted po class data is all null. Looking at the compiled class file, it is found that the target po class object that should be converted has not been converted, but a new object has been created without givingits attribute assignment
II. Reasons and Solutions

That's why it's a stupid lombok again
The set get method automatically generated by lombok is different from the one generated by the idea tool.
Manually write down the set get method of the po class
Recompile after clean, and the converted dataOK, as shown
边栏推荐
猜你喜欢

Shell编程的条件语句

【 original 】 Auto. Js the get and post case

记录一些遇见的bug——mapstruct和lombok同时使用时,转换实体类时数据丢失问题
软件测试个人求职简历该怎么写,模板在这里

HI3521D 烧录128M nand flash文件系统过程-一定要注意flash的容量

中断系统需要解决的问题

OpenFOAM提取等职面并计算面积

log4j设置日志的时区

Domino服务器SSL证书安装指南

PyTorch installation - error when building a virtual environment in conda before installing PyTorch
随机推荐
计组错题集
ESP8266-Arduino编程实例-MAX6675冷端补偿K热电偶数字转换器驱动
ESP8266-Arduino编程实例-MCP3008-ADC转换器驱动
OpenFOAM extracts equivalency and calculates area
金仓数据库 Pro*C 迁移指南(3. KingbaseES Pr*oc 对 Oracle Pro*c 的兼容)
中断系统需要解决的问题
基于WPF重复造轮子,写一款数据库文档管理工具(一)
硬件设计哪些事-PCB设计那些事
我的“眼睛”就是尺!
TCP相关面试常问
浅谈用KUSTO查询语言(KQL)在Azure Synapse Analytics(Azure SQL DW)审计某DB账号的操作记录
数据库性能系列之索引(中)
高等代数_笔记_配方法标准化二次型
Compose the displacement of the view
视频中场的概念(1080I和1080P)和BT601/656/709/1120/2020/2077
HI3521D 烧录128M nand flash文件系统过程-一定要注意flash的容量
v-on指令:为元素绑定事件
Can Oracle EMCC be installed independently?Or does it have to be installed on the database server?
【动态规划--01背包】HJ16 购物单
urlencode 和rawurlencode的区别