最近项目中遇到这个问题,
org.springframework.dao.InvalidDataAccessApiUsageException: org.hibernate.TransientPropertyValueException: object references an unsaved transient instance - save the transient instance before flushing
刚开始以为是级联设置错了,后来才发现,前台传值的时候级联的对象传过来的是个空对象(也就是级联对像的ID传的是空字符串),不是null;