I am working on a Spring Data application.
Master data in my application like Gender, Qualification etc. are needed to be available for multiple entities in the application. I am using liquibase to create the schema and data for the initial dataset in the application.
- Should these master tables be mapped as entities in the application?
- Is it possible to get the data in these entities as enums in the application?
- Or should i get this information at the application start as static data available throughout the application?
There are examples/answers to queries regarding generating enums in code, but my requirement is different.