1

I have 3 MySQL tables and i need to generate their corresponding entities in java (eclipse) is there an easy way ? im working on a spring boot application

2
  • Have you tried this Commented Aug 11, 2020 at 8:22
  • @Sudoss i did i couldn't find the jpa tools... Commented Aug 11, 2020 at 8:43

1 Answer 1

1

While the majority of people will recommend jpa(spring data) this is codeFirst approach, for DB first approach I have a great framework recommendation:

If you have some time on your hand I will go and try Jooq

Jooq website

Jooq has a maven dependency for creating all necessary objects from your db:

Jooq auto code generation from db

codeGen configuration in maven

Jooq can connect to your db, and even connect to your liquibase schema upgrades so that the object are always on the same stage with the db

I don't have any connection to Jooq but Lukas Eder (@lukaseder) is an awsome guy, he always answer questions in stack Overflow, so you are in good hands, also if you are using reactor Jooq is fully compatible(also compatible with JavaRX)

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.