简体   繁体   English

JHipster JDL Studio不接受应用程序标签

[英]JHipster JDL studio not accepting application tag

I am trying to create .jh file with tag as given below. 我正在尝试使用下面给出的标签创建.jh文件。 But Eclipse plugin or online JDL-Studio is not accepting this section. 但是Eclipse插件或在线JDL-Studio不接受此部分。

application {
  config {
    baseName myapp,
    path "../", // the generated folder will be "../myapp"
    applicationType microservice,
    prodDatabaseType postgresql,
    buildTool gradle
  }
}

I even tried following example which is given in article but that is also not working. 我什至尝试了以下示例,该示例在文章中给出,但这也不起作用。 Does any one using this in JDL-Studio. 在JDL-Studio中是否有人使用它。

application {
  config {
    baseName myMonolith,
    path "../",
    applicationType monolith
  }
  entities * except C, D
}

application {
  config {
    baseName myGateway,
    path "../",
    applicationType gateway,
    serverPort 9042
  }
  entities * except A, B
}

application {
  config {
    baseName microserviceA,
    path "../",
    applicationType microservice
  }
  entities C
}

application {
  config {
    baseName microserviceB,
    path "../",
    applicationType microservice,
    serverPort 8082
  }
  entities D
}

entity A
entity B
entity C
entity D

dto * with mapstruct
paginate D with pager

This tag comes from the JDL v2, and it is not yet implemented in the JDL Studio. 该标记来自JDL v2,并且尚未在JDL Studio中实现。

The main reason is that JDL v2 will come with JHipster v5, which is not released yet. 主要原因是JDL v2将与尚未发布的JHipster v5一起提供。 JHipster Online, which includes the JDL Studio, works with the latest stable release, so it's still using JHipster v4 and JDL v1. 包含JDL Studio的JHipster Online可以与最新的稳定版本一起使用,因此它仍在使用JHipster v4和JDL v1。

Once JHipster v5 is released, we will upgrade JHipster Online, and then JDL Studio, so it can take a few weeks before it's all aligned. JHipster v5发布后,我们将先升级JHipster Online,然后再升级JDL Studio,因此可能要花几周的时间才能将它们全部对齐。 It all depends on contributions, so there is no guarantee, but that shouldn't be a huge work. 这完全取决于贡献,因此无法保证,但这不应该是一项巨大的工作。

One more thing to notice, if you want JHipster Online to generate your applications: this tag might be excluded. 如果您想让JHipster Online生成您的应用程序,还要注意一件事:该标记可能会被排除。 We already have a Web form for generating applications, and we feel that it's easier that way - so maybe we will only accept a subset of tags (ie no application tag), so JHipster Online could only generate entities with the JDL. 我们已经有了一个用于生成应用程序的Web表单,并且我们觉得这种方法更容易-因此也许我们只接受一部分标签(即没有application标签),所以JHipster Online只能使用JDL生成实体。 Still, you could use the JDL Studio with the full set of tags, and run the JDL on your computer using jhipster import-jdl - that would be a more advanced usage. 尽管如此,您仍然可以将JDL Studio与完整的标签集一起使用,并使用jhipster import-jdl在计算机上运行jhipster import-jdl这将是更高级的用法。

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

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