I have a table (let's call it MY_TABLE) with a column (let's call it COLUMN_A).
I use spring Data to execute CRUD operations on that table. Especially, I use save method from org.springframework.data.repository.CrudRepository interface to insert some logging data into that table.
My issue is that, I noticed this morning that while creating MY_TABLE (using an SQL script), I made a typo and wrote COLUM_NA instead of COLUMN_A as column name.
So I ALTERed the table to rename that column, then I renamed the column name in my Java entity class MyTableEntity and into the getter/setter methods as well.
Since then, when I execute my Java application I have this Oracle error:
ORA-00904: "MYTABLEENT0_"."COLUMN_A" : invalid identifier.
It’s like he’s not finding the new column name and still using the old wrong one. But I don’t know why, I’ve changed the column name everywhere.
Thank you for any help.
ALTERstatement.RENAMEcolumn DEMO