I am getting the following error with my Java code when attempting to delete rows from the database:
java.lang.IllegalStateException: org.hibernate.TransientPropertyValueException: object references an unsaved transient instance - save the transient instance before flushing : com.my.package.dog.kennel -> com.my.package.kennel
I have read this question which helped me understand the error. However, I am not sure which entity
the error is suggesting I need to save before flushing?
is it the kennel
or dog
entity?