How can I generate entity (POJO) from database model using IntelliJ IDEA 10. I create "Data source" in IntelliJ but I have not any idea how can I generate the POJO.
See Question&Answers more detail:osHow can I generate entity (POJO) from database model using IntelliJ IDEA 10. I create "Data source" in IntelliJ but I have not any idea how can I generate the POJO.
See Question&Answers more detail:osUPDATE:
In IntelliJ 16 this feature in now implemented.
The steps to do it are:
You can read more here:
Feature request: allow "generate classes from database schema" for plain-JDBC developers
Note: The following information is about version 15 and earlier:
First, you need to tell IntelliJ that you are using Hibernate (I guess you are if you need the orm POJO of the table)
Now that you have set up your hibernate configuration facet, you can extract your POJOs.