IDEs such as Netbeans allow you to generate entity classes through a persistence context. If you had access to the basic generation method (not sure if it is an external tool or part of the IDE), could you generate database entity classes dynamically at run time? . The idea was that you could connect to entity classes using reflection.
I know that you can go the other way and generate a database from an entity class, however, due to permission problems in my working environment, which will not go. However, if you change the process and pull classes from the database, this may be feasible in my environment. The idea is that the database will serve as a single point of configuration / management.
source
share