I have a database with many tables, do I have to create the Pojo of each table? If so, can you automate?
I have a database with many tables, do I have to create the Pojo of each table? If so, can you automate?
Web design, brother?
If you are using JPA with Hibernate provider, the Eclipse IDE for Java EE has a feature for creating entities from tables, just select the project right-click on JPA tools and choose Genereted Entities from tables . From this, it will open a configuration window for the procedure. Of course, your project will have to be connected to the database in question, persistence.xlm
should also be in agreement.
Yes, through Eclipse you can reverse engineer your table into a JPA entity.