Spring boot jpa tool is not available in STS(Spring Tool Suite) for converting tables to entities

karthick picture karthick · Nov 15, 2017 · Viewed 9.3k times · Source

Here i am working in Spring boot in Spring tool Suite.I want to convert an Oracle databse tables to JPA Class Entites. But i did not get any JPA tools in project_folder ->jpa tools. What i have to do can you please suggest a better solution. Thanks

Answer

Abdullah Khan picture Abdullah Khan · Nov 15, 2017

Create a JPA project like so

File -> New -> JPA Project(Go to Others if JPA projects is not here)

After you have created your JPA project you can right click the project in the Project Explorer

Project Explorer -> Right-Click -> JPA Tools -> Generate Entities from Tables

Hope this helps.

Update 1

If you are not getting options of creating a JPA project in your eclipse you might not be having the required tools for JPA support. Check this.

You can go to "Install New Software", select the Eclipse Oxygen Update Site, and then search for the JPA tooling - and install it from there. This brings back the JPA tooling.