I have some pre generated classes with method names to interact with Database. Here library automatically map method names with database properties to query based on some fixed convention.
This is very easy to use as i don't have to write explicit queries.
Here i want to protect method names from being refactored accidentally. If someone without deep knowledge, changes method names it breaks at runtime.
Is there any way to throw error at compile time by using annotation or some other way if any changes detected for some auto generated methods?