Generating entity classes of the database table with IDEA

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/weixin_44018093/article/details/99738516
  • Unable to find tools to generate entity classes, you can generate with the idea comes.
  • Open Database view inside
    Here Insert Picture Description
  • Click the "+" sign to add a database connection information
    Here Insert Picture Description
  • In the File Open Project Structure
    Here Insert Picture Description
  • Click the "+" sign to add JPA in the project
    Here Insert Picture Description
  • Persistence is opened in a view
    Here Insert Picture Description
  • Right-click the Persistence in the project name and select Generate Persistence Mapping ----- By Database Schema and click
    Here Insert Picture Description
  • After configuration, the following diagram Click OK to
    Here Insert Picture Description

END

Guess you like

Origin blog.csdn.net/weixin_44018093/article/details/99738516