Hibernate JPA project to create entities from tables

 

Hibernate JPA 

Step 1: Install Hibernate tools in your Eclipse JEE IDE

Step 2: Create a JPA Project. JPA Facet should have library configuration disabled and a database connection set as we will add hibernate libraries in the classpath.

Image

Step 3: Add the hibernate JPA libraries in build path

Image

 

Step 3: Add a connection to the database with tables available

Step 4: In JPA perspective right click the project -> JPA Tools -> Generate entities from table

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s