I've got an annoying problem after had one of our tables dropped.
I'm trying to persist an entity but every time I call the persist(...) on it I get this error message:
Caused by: com.ibm.db2.jcc.am.SqlException: An error ocurred during the implicit action "3". SQLCODE "-204", SQLSTATE "42704" and tokens from message "MYDB2SCHEMA.TB_ABCD".. SQLCODE=-727, SQLSTATE=56098, DRIVER=4.12.56
It looks like it is not able to find "MYDB2SCHEMA.TB_ABCD", of course it won't as DBA dropped it last week. But it is very weird because the entity I'm trying to persist has no relationship to "MYDB2SCHEMA.TB_ABCD" entity, lets call it ABCDEntity.
To let things even more complicated, I deleted the ABCDEntity so that there is no entity related to it any more, then I searched for "MYDB2SCHEMA.TB_ABCD" in the entire project and there is nothing too, but still I get the same error.
The table I'm trying to persist in DB2 has no relationship to the dead table, I'm not a DBA but I believe if it the dead table had any relationship it would have been removed during the drop.
So, why is DB2 or JPA still trying to looking for that table if there is no Entity/table related to it any more?