关于:not-null property references a null or transient value
来源:互联网 发布:php存储base64 编辑:程序博客网 时间:2024/06/11 18:08
org.hibernate.PropertyValueException: not-null property references a null or transient value: com.bjcx.project.entity.task.Equipmenttable.ProjPortfolioID
at org.hibernate.engine.Nullability.checkNullability(Nullability.java:72)
at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate
字面意思:一个不允许为Null的属性引用了一个为Null的或者无效的值。
原因:在***.hbm.xml中的
<property name="ProjPortfolioID" column="ProjPortfolioID"
type="big_decimal" not-null="true" length="10" />
中,not-null="true",这说明属性ProjPortfolioID 不允许为空,而在ActionForm中未给他赋值,则就为空,所以就会报错!
at org.hibernate.engine.Nullability.checkNullability(Nullability.java:72)
at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate
字面意思:一个不允许为Null的属性引用了一个为Null的或者无效的值。
原因:在***.hbm.xml中的
<property name="ProjPortfolioID" column="ProjPortfolioID"
type="big_decimal" not-null="true" length="10" />
中,not-null="true",这说明属性ProjPortfolioID 不允许为空,而在ActionForm中未给他赋值,则就为空,所以就会报错!
- 关于:not-null property references a null or transient value
- not-null property references a null or transient value
- not-null property references a null or transient value
- not-null property references a null or transient value:
- not-null property references a null or transient value
- not-null property references a null or transient value:
- 关于hibernate(jpa)报not-null property references a null or transient value的问题
- not-null property references a null or transient value: 等关于cinema项目bug
- hibernate异常:not-null property references a null or transient value
- org.hibernate.PropertyValueException: not-null property references a null or transient value
- 取数据 或 删除数据 DataIntegrityViolationException: not-null property references a null or transient value
- hibernate级联保存问题,出错not-null property references a null or transient value
- java中的异常not-null property references a null or transient value
- org.hibernate.PropertyValueException: not-null property references a null or transient value: model.
- org.hibernate.PropertyValueException: not-null property references a null or transient value
- SSH-err:not-null property references a null or transient value:
- org.hibernate.PropertyValueException: not-null property references a null or transient value : xxx
- not-null property references a null or transient value : org.com.model.person_one_one_test.address
- 鼠标移动实现标签自动切换
- 如何成为一名中级程序员......
- 随感
- 友元
- 鼠标移动放大镜效果
- 关于:not-null property references a null or transient value
- Libraries
- hive的安装
- jsp/servlet中的过滤器Filter配置总结
- linux查找命令
- 关于VC6.0 MFC+ATL做出的COM,其内部的windows窗口不能以XP Theme模式显示的问题彻底解决
- Xtools工具箱
- Android JNI开发入门
- 什么是MVC?