7

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

karthick
  • 101
  • 1
  • 1
  • 7

5 Answers5

0

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.

Abdullah Khan
  • 12,010
  • 6
  • 65
  • 78
0

In order to Install New Software, go to Help\Install New Software..., select the Eclipse Oxygen Update Site: https://download.eclipse.org/releases/oxygen/, and then search for the JPA tooling.

0

Eclipse Projects created as 'Spring Boot - Spring Starter Project' are not-faceted projects per default. Therefore there don't have the JPA-facet which offers the Wizzard to generate JPA entities from tables.

You need to add the JPA-Project Facet to your project.

Project > Properties > Project Facets > JPA

If your project is not configured to use project facets, you'll get a message asking if you want to convert it to a faceted project.

wolfrevo
  • 6,651
  • 2
  • 26
  • 38
0

Help -> Install New Software -> work with https://download/eclispe.org/releases/2019-03 -> filter 'JPA' -> Uncheck 'Contact all update sites during install to find required software'

1

Sven Eberth
  • 3,057
  • 12
  • 24
  • 29
許愛美
  • 1
  • 1
0

Try installing Jboss toll from marketplace, I had same issue and it is fixed now.

Ravindra S. Patil
  • 11,757
  • 3
  • 13
  • 40