How can I generate DDL from existing entities with annotations using a maven plugin?

后端 未结 2 1704
既然无缘
既然无缘 2021-01-15 12:56

I have maven project and I want to generate DDL from existing entities.

How can I do that?

Is there any maven plugin that I can generate the DDL?

I

2条回答
  •  情歌与酒
    2021-01-15 13:26

    If you are using Hibernate as your JPA provider, check http://users.mafr.de/~matthias/articles/generating-ddl-scripts.html.

    Possible duplicate of generate DDL from JPA annotations, although the question there is phrased slightly differently?

提交回复
热议问题