ORA-00904: "TABLE_"."COLUMNNAME": invalid identifier
Is actually an oracle error, you can see its cause here : ORA-00904: invalid identifier
The problem is probably that with the name of column set to "bankID", as the previous question says the column must be referred to from now on with double quotes, I probably think that bankID
is primary/foreign key, hibernate tries to refer to it without double quotes and thus the error.
Now when you write Column(name="BANK_ID",...
, you're following the previous question's advice : put all characters in upper case.
Honestly I don't know if you can consider this a Hibernate bug or opinion(maybe they should mention it in the docs), if it was already filed as a bug and got fixed then upgrading would solve your issue.
Note
every error that starts with ORA
is probably an oracle error, you can google the number after it (00904
) and you'll mostly get answers .