hibernate中进行update时报错could not execute JDBC batch update,说是exec字段不能为空

2025-02-25 01:39:05
推荐回答(4个)
回答1:

你给你的实体中对应的exec属性也设置一个默认值为0

回答2:

默认值不要在数据库上面设,而是在类的属性上面设

回答3:

在配置文件里 改 not-null=true 改为 false

回答4:

hibernate是包,最好不要动,只要添加。jdbc是你的源