Create database with JPA?

后端 未结 2 1163
野性不改
野性不改 2021-01-04 10:30

When I create (using JPA - java persistence api) a persistence unit and then persistence entities they auto create the corresponding tables and fields in the database.

2条回答
  •  臣服心动
    2021-01-04 11:22

    The database has to be created manually (Fortunatly you didn't ask why ;-). Which is similar to the user/password combination you use to connect to your database server, which must already exist in order to connect to the DB.

提交回复
热议问题