I am attempting to remove an entity and delete its row from the database using the following method:
public void remove(Object o){
this.persistence.entityManager().remove(o);
}
When I attempt to do so I am getting the error:
ERROR o.h.e.jdbc.spi.SqlExceptionHelper - ORA-01407: cannot update ("SCHEMA"."TABLE"."COLUMN") to NULL
I know that there is a IS NOT NULL CONSTRAINT
on this column.
But why would this matter if the row is going to be deleted? I do not understand why I am getting this error?