org.hibernate.PropertyValueException: not-null property references a null or transient value
来源:互联网 发布:吉利知豆d3多少钱 编辑:程序博客网 时间:2024/05/22 03:02
org.hibernate.PropertyValueException: not-null property references a null or transient value:
com.bjcx.project.entity.task.Equipmenttable.ProjPortfolioIDat 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中未给他赋值,则就为空,所以就会报错!
0 0
- org.hibernate.PropertyValueException: 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
- org.hibernate.PropertyValueException: not-null property references a null or transient value : xxx
- Caused by: org.hibernate.PropertyValueException: not-null property references a null or transient va
- 错误:org.hibernate.PropertyValueException: not-null property references a null
- 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:
- not-null property references a null or transient value : org.com.model.person_one_one_test.address
- hibernate异常:not-null property references a null or transient value
- 关于hibernate(jpa)报not-null property references a null or transient value的问题
- hibernate级联保存问题,出错not-null property references a null or transient value
- 取数据 或 删除数据 DataIntegrityViolationException: not-null property references a null or transient value
- java中的异常not-null property references a null or transient value
- JAVA多线程
- 登月、科技
- onblur 是控件在失去焦点的时候触发的事件
- 二叉树创建 元素计数与显示
- String,StringBuffer与StringBuilder的区别??
- org.hibernate.PropertyValueException: not-null property references a null or transient value
- java中如何截取一个数的有效位
- linux内存管理之malloc
- java基础——单例模式
- 理解指针和数组的关系
- OpenG: 光照
- 如何进行iOS 性能测试
- Json C++解析
- AS3的一些压缩解压缩类库(AS3 ZIP、AS3 GZIP等等)