Hey,
I have an entity ("entrylog") that represents a log entry in the app,
entrylog has a reference to other entities.
When hibernate creates the tables, it also creates the foreign keys, thus, when I delete a certain entity that is associated with an entrylog, I get:
Code:
Cannot delete or update a parent row: a foreign key constraint fails
Usually it makes sense, but in my case, since the entrylog is just a log entry, I would like to be able to delete entries (that associated to the entrylog) and leave the log entry as they are.
Is it possible? I don't mind that the entrylog will keep a reference to a not existance entry, I will take care of it programatically.
Thanks in advance,
Asaf