Hello, I’m in an existing codebase that contains 500+ JPA annotated entity classes. These classes also contain business logic and other tightly coupled dependencies. I want to extract these classes to another project and start clean with just pure JPA class entities.
I already tried to generate the POJOS from the database schema with hbm2java (maven-plugin), which resulted in about 1300+ generated classes and loses the inheritance hierarchy. This is mainly due to reveng not recognising the Inheritance Strategy of the existing entity classes.
Any idea’s on how to produce pure/clean annotated POJOs with the correct inheritance hierarchy of the existing classes?