I am migrating old spring boot application to latest spring boot 2.3.0
Migration happens successfully, however, when I try to connect the application to the existing database, it is not able to identify autogenerated foreign key columns due to uppercase and lowercase issue.
the foreign key column name in the older version had upper case letters as shown below. here, FLAGCATEGORY_FLAGCATEGORYID is the foreign key column name which is autogenerated by hibernate
When I use the new spring boot version with hibernate 5, it is generating lowercase foreign key column names. Due to this difference, the application can not be started with the older database. Could anybody suggest me what should I do to resolve this without changing the database schema?

here is how the new foreign key table name looks like. foreign key column name now has lowercase letters

