How to create Pojos with annotations quickly?

2

I have a database with many tables, do I have to create the Pojo of each table? If so, can you automate?

    
asked by anonymous 07.10.2015 / 21:23

2 answers

2

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.

    
07.10.2015 / 21:39
0

Yes, through Eclipse you can reverse engineer your table into a JPA entity.

link

    
07.10.2015 / 21:42