I have an existing PostgreSQL DB. I need to generate the Java classes. The IDE and tools I’m using are chosen by employer. Basically, I’m trying to set up a Maven Build that will connect to the Postgres DB and then generate the Java code for me (with all of the appropriate annotations so that they can be compiled and then imported into Drools. I just can’t find any documentation what will explain how this would be done. I have spent hours at it and there are always missing classes or configuration with undecipherable messages (i.e. a missing class with no clue on how to resolve it).
One example of one of the issues I’m having right now is that it says the driver for the DB is missing yet it is in the hibernate.properties file and the hibernate.cfg.xml file.
Where is a document (not a video since those are too hard to reference). That explains how to do this with a Maven Build job?