从现有数据库自动生成JHipster实体 [英] Auto generate JHipster entities from existing database
问题描述
作为JHispster 2.11.0的一部分,实体配置保存在.jhipster目录中的特定.json文件中。使用以下命令,这些文件可用于在JHipster应用程序中重新生成实体和相关文件。
As part of JHispster 2.11.0, the entity configuration is saved in a specific .json file, in the .jhipster directory. These files can be used to regenerate entities and related files in JHipster application using the below command.
yo jhipster:entity ENTITY_NAME
yo jhipster:entity ENTITY_NAME
有什么方法可以从现有数据库中自动生成那些.json文件吗?
Is there any way to auto generate those .json files from existing database?
推荐答案
我们正在努力生成那些来自UML模型的文件,请参见我们的 JHipster UML 项目。
We are currently working to generate those files from a UML model, see our JHipster UML project.
因此,如果您可以将数据库模式导出到UML,这是可行的,但是我认为这不能像预期的那样顺利。
So if you can export your database schema to UML, this could be doable, but I don't think this can work as smoothly as expected.
这篇关于从现有数据库自动生成JHipster实体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!