简体   繁体   English

jHipster导入数据库架构

[英]jHipster import database schema

I am new to JHipster . 我是JHipster I am creating new JHipster project, but I was wondering if I can generate all entities from my current Oracle tables/schema. 我正在创建新的JHipster项目,但我想知道是否可以从当前的Oracle表/模式生成所有实体。

Is it possible? 可能吗? I tried db-helper plugin but it does not seem to have this feature. 我尝试了db-helper插件,但是它似乎没有此功能。

Looks like it only needs to create JDL file from existing database. 看起来只需要从现有数据库创建JDL文件。

As specified in the motivation of the db-helper plugin JHipster is using some convention and depending on how consistent you designed your database, ie name of tables, name of PK etc; 正如db-helper插件动机所指出的那样,JHipster使用某种约定,并取决于您设计数据库的一致性,即表名,PK名等。 it can be more or less difficult to start JHipster on an already existing database. 在已经存在的数据库上启动JHipster可能会或多或少困难。 As specified here you could try to create a UML from your schema and use JHipster UML to generate a JHipster project based on your schema. 如此处指定您可以尝试从架构中创建UML并使用JHipster UML根据您的架构生成JHipster项目。 The problem is that there are no tools, at least no free tools from what you can see here . 问题是,没有工具,从你可以看到至少没有免费的工具在这里

Depending on how many tables you have, you could try to read the metadata from your DB and generate the jdl file at least for the entities and their properties. 根据您拥有的表数量,您可以尝试至少从数据库中读取元数据并至少为实体及其属性生成jdl文件。 For the relation it can be a little complicated. 对于关系,它可能有点复杂。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM