报错信息don't flush the Session after an exception occurs
来源:互联网 发布:迅雷下载mac版 编辑:程序博客网 时间:2024/06/06 02:04
don't flush the Session after an exception occurs,该异常(报错)为主键(外键)异常。
错误原因:
在多表关联时存入数据先要存入客户信息再存入客户的联系人信息(即先存入主表信息再存入从表信息),否则联系人的外键无法引用(对应)客户的主键。
主表和从表的定义:主键与其他表相关联的表是主表;以主表的主键值为外键的表,可以通过外键与主表进行关联查询的叫做从表。从表数据依赖于主表。
解决方案:
先存入客户信息然后才能存入该客户的联系人信息。否则联系人不存在对应的客户就会出错。
阅读全文
0 0
- 报错信息don't flush the Session after an exception occurs
- ssh插入信息报异常!don't flush the Session after an exception occurs
- don't flush the Session after an exception occurs异常
- don't flush the Session after an exception occurs
- don't flush the Session after an exception occurs
- null id in entry (don't flush the Session after an exception occurs)
- null id in entry (don't flush the Session after an exception occurs) 解决方法
- org.hibernate.AssertionFailure: null id in entry (don't flush the Session after an exception occurs)
- org.hibernate.AssertionFailure: null id in xxx (don't flush the Session after an exception occurs)
- don't flush the Session after an exception occurs 异常原因
- null id in entry (don't flush the Session after an exception occurs)
- org.hibernate.AssertionFailure: null id in entry (don't flush the Session after an exception occurs)
- null id in entry (don't flush the Session after an exception occurs)的错误
- null id in XXXentity (don't flush the Session after an exception occurs。。。。(HIbernate 实体类包含关键字)
- null id in com.hfxt.entity.User entry (don't flush the Session after an exception occurs)
- null id in org.htss.messageservice.pojo.Task entry (don't flush the Session after an exception occur
- org.hibernate.AssertionFailure: null id in xxx entry (don't flush the Session after an except)解决方法
- org.hibernate.AssertionFailure: null id in com.fy.domain.GoodPO entry (don't flush the Session after
- 对封装、继承、多态、抽象的理解
- NumPy 学习笔记
- 框架漫谈之hibernate(三)hibernate的一些相关概念以及hibernate的简单查询
- Java获取本周一、上周一、下周一时间
- 2 Object类
- 报错信息don't flush the Session after an exception occurs
- 阻塞、非阻塞、同步、异步的理解
- 读书笔记_软件架构设计 程序员向架构师转型必备(第二版)温昱
- 报错信息:系统找不到指定的路径
- 报错信息:Could not find artifact
- 报错信息:java.io.FileNotFoundException拒绝访问
- AngularJS构建单页面应用WebApp目录介绍
- Maximum Width of Binary Tree
- C++ STL中Map的按Key排序和按Value排序