Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

"Interface" functions/procedures (best practices)

JackKSep 21 2021

Hi All.
During application deployment there is sometimes a need to change some columns' names in a table(s). I was wondering what is the best approach to do this and I think that the best would be to have an additional layer of procedures/functions which maps real column names in DB tables to column names used by Java layer (for example). This way when a column in table change its name the application will still work because "interface" function/procedure used by Java still returns original column names.
I don't know, however, what are the best practices to implement above. Do you know that, maybe?
Best regards,
Jacek

Comments
Post Details
Added on Sep 21 2021
2 comments
373 views