0

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?

alexbt
  • 15,503
  • 6
  • 73
  • 85
java123999
  • 6,204
  • 31
  • 73
  • 114

0 Answers0