Reputation: 41
Is there a good practice to introduce existing legacy database tables/entities into a JHipster project? The idea I had was to create the JPA entities that look exactly like the existing entities and then use the generated artifacts as per normal. Will this possibly work?
Upvotes: 1
Views: 167
Reputation: 41
In the end, I opted for just creating a view of all the underlying tables I needed in my query. The steps I followed were:
Now I can add my own routers and buttons, to allow other specific operations/flow. This page was my inspiration: https://www.javabullets.com/calling-database-views-from-spring-data-jpa/
Upvotes: 2