I have entity Aircraft and FlightData, which have one-to-one relationship (i.e one Aircraft can have one FlightData).
The Aircraft class is as below.
The FlightData class is as below.
I am able to Add/Update the FlightData, but when i try to delete the flight data i get the following exception
org.hibernate.ObjectDeletedException: deleted object would be re-saved by cascad
e (remove deleted object from associations): [org.woi.dao.FlightData#4]
Does anyone has any idea, what is causing this error.