星空网 > 软件开发 > Java

org.springframework.dao.DataIntegrityViolationException:

数据库用的hibernate,开发工具用的myeclipse,使用开发工具连接数据库生成hibernate基于

并且提示某个字段  not—null;

 

解决,查看了数据库字段类型为number类型,将生成的po对应字段改写成Integer类型,原因:开发工具生成的类型,与数据库number类型对象,但是如果数据是0会被过滤,

而Integer数据int的包装类型,不会过滤0

那么,问题解决了;




原标题:org.springframework.dao.DataIntegrityViolationException:

关键词:Spring

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

退货海外仓:https://www.goluckyvip.com/tag/90288.html
引流小技巧:https://www.goluckyvip.com/tag/9029.html
4px海外仓:https://www.goluckyvip.com/tag/90297.html
品类轮转:https://www.goluckyvip.com/tag/903.html
备货期:https://www.goluckyvip.com/tag/9030.html
免费海外仓:https://www.goluckyvip.com/tag/90307.html
千岛湖绿城度假酒店的简介:https://www.vstour.cn/a/363185.html
深圳大湾区游轮夜景 深圳大湾区游轮夜景图:https://www.vstour.cn/a/363186.html
相关文章
我的浏览记录
最新相关资讯
海外公司注册 | 跨境电商服务平台 | 深圳旅行社 | 东南亚物流