Object references unsaved transient instance

the following error occurred when saving data using Spring DataJPA today:

Exception in thread "main"  org.hibernate.TransientObjectException: object references an unsaved transient instance  save the transient instance before flushing: com.edurt.core
May.10,2022

this is because your object references an unsaved transient instance, in other words: because the record of the master table has not been inserted, the slave record referring to that record cannot be inserted

cascade all persistence operations of Hibernate to associated entities through cascade=CascadeType.All .

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b9e9b2-2f40b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b9e9b2-2f40b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?