How to create Pojos with annotations quickly?

Asked

Viewed 173 times

2

I have a database with many tables, I have to create the Pojo of each table? If yes, have to automate?

2 answers

2


Web project, my brother? If you’re using JPA with provider Hibernate, to IDE Eclipse for Java EE has a feature for creating entities from tables, just select the project with the right click go on JPA tools and choose Genereted Entities from Tables. From this, it will open a configuration dialog for the procedure. Of course, your project will have to be connected to the database in question, the persistence.xlm should also agree.

0

Browser other questions tagged

You are not signed in. Login or sign up in order to post.