随笔分类 -  hibernate

摘要:翻译过来就是“(可选)必须级联到关联目标的操作,默认情况下,没有级联操作。” 就是实体A进行变更时,与之关联的实体B也要进行更新 这个东西部能乱配置,否则会出问题的,比方说在单向的many to one 关系中,如果在many方配置了 cascade="save-update,persist",当我 阅读全文
posted @ 2019-07-17 21:09 Mlek 阅读(209) 评论(0) 推荐(0)
摘要:异常提示org.springframework.orm.hibernate4.HibernateSystemException: identifier of an instance of com.mi.domain.Department was altered from 2 to 1; nested 阅读全文
posted @ 2019-07-14 16:28 Mlek 阅读(1584) 评论(0) 推荐(0)
摘要:【异常提示】 org.hibernate.PropertyAccessException: IllegalArgumentException occurred calling getter of com.mi.domain.Department.id java.lang.IllegalArgumen 阅读全文
posted @ 2019-07-13 07:23 Mlek 阅读(505) 评论(0) 推荐(0)
摘要:转载自https://www.cnblogs.com/dixinyunpan/p/6004991.html 【异常提示】 TransientObjectException: object references an unsaved transient instance -save the trans 阅读全文
posted @ 2019-07-13 00:48 Mlek 阅读(319) 评论(0) 推荐(0)