当 jdl 具有用户实体关系时,jhipster 网关应用程序中的 jhipster import-jdl 错误

发布于 2025-01-09 19:24:20 字数 1984 浏览 0 评论 0原文

我使用 jhipster 版本 7.6.0 生成了 Jhipster 网关应用程序。这是我的 yo.rc

{
  "generator-jhipster": {
    "applicationType": "gateway",
    "authenticationType": "jwt",
    "baseName": "demo",
    "blueprints": [],
    "buildTool": "gradle",
    "cacheProvider": "no",
    "clientFramework": "angularX",
    "clientPackageManager": "npm",
    "clientTheme": "litera",
    "clientThemeVariant": "primary",
    "creationTimestamp": 1645612665729,
    "databaseType": "sql",
    "devDatabaseType": "h2Disk",
    "devServerPort": 4200,
    "dtoSuffix": "DTO",
    "enableGradleEnterprise": false,
    "enableHibernateCache": false,
    "enableSwaggerCodegen": true,
    "enableTranslation": false,
    "entitySuffix": "",
    "jhiPrefix": "jhi",
    "jhipsterVersion": "7.6.0",
    "jwtSecretKey": "ZGZjMmY2NjBiOGYwNjQxZDE1MzU1MzlkY2VhOWU5ODM0MWFkOWYzZDA2NTcyNTI2ZTgxOTJlYmI2NTY0Y2JjOWNjODdjNWMyNmM4YTZkNTMyNTZhMDhkZTBlNzliYzI5YTE0OWM5ZjExNzc1YjE1YTI5ZWFiNzAzMDVkMTQwYTg=",
    "languages": ["en", "fr"],
    "messageBroker": "kafka",
    "nativeLanguage": "en",
    "otherModules": [],
    "packageName": "com.demo",
    "pages": [],
    "prodDatabaseType": "postgresql",
    "reactive": true,
    "searchEngine": false,
    "serverPort": "8080",
    "serverSideOptions": ["messageBroker:kafka", "enableSwaggerCodegen:true"],
    "serviceDiscoveryType": "eureka",
    "skipCheckLengthOfIdentifier": false,
    "skipFakeData": false,
    "skipUserManagement": false,
    "testFrameworks": [],
    "websocket": false,
    "withAdminUi": true
  }
}

我有一个 app-jdl.jdl 文件,其中包含以下内容

entity Blog {
  name String required minlength(3)
  handle String required minlength(2)
}

relationship ManyToOne {
  Blog{user(login)} to User
}

,当我运行 jhipster import-jdl app-jdl.jdl 时,出现以下错误 输入图片此处描述

是什么导致了该问题以及如何解决它?

I have generated a Jhipster gateway application using jhipster version 7.6.0. Here is my yo.rc

{
  "generator-jhipster": {
    "applicationType": "gateway",
    "authenticationType": "jwt",
    "baseName": "demo",
    "blueprints": [],
    "buildTool": "gradle",
    "cacheProvider": "no",
    "clientFramework": "angularX",
    "clientPackageManager": "npm",
    "clientTheme": "litera",
    "clientThemeVariant": "primary",
    "creationTimestamp": 1645612665729,
    "databaseType": "sql",
    "devDatabaseType": "h2Disk",
    "devServerPort": 4200,
    "dtoSuffix": "DTO",
    "enableGradleEnterprise": false,
    "enableHibernateCache": false,
    "enableSwaggerCodegen": true,
    "enableTranslation": false,
    "entitySuffix": "",
    "jhiPrefix": "jhi",
    "jhipsterVersion": "7.6.0",
    "jwtSecretKey": "ZGZjMmY2NjBiOGYwNjQxZDE1MzU1MzlkY2VhOWU5ODM0MWFkOWYzZDA2NTcyNTI2ZTgxOTJlYmI2NTY0Y2JjOWNjODdjNWMyNmM4YTZkNTMyNTZhMDhkZTBlNzliYzI5YTE0OWM5ZjExNzc1YjE1YTI5ZWFiNzAzMDVkMTQwYTg=",
    "languages": ["en", "fr"],
    "messageBroker": "kafka",
    "nativeLanguage": "en",
    "otherModules": [],
    "packageName": "com.demo",
    "pages": [],
    "prodDatabaseType": "postgresql",
    "reactive": true,
    "searchEngine": false,
    "serverPort": "8080",
    "serverSideOptions": ["messageBroker:kafka", "enableSwaggerCodegen:true"],
    "serviceDiscoveryType": "eureka",
    "skipCheckLengthOfIdentifier": false,
    "skipFakeData": false,
    "skipUserManagement": false,
    "testFrameworks": [],
    "websocket": false,
    "withAdminUi": true
  }
}

I have a app-jdl.jdl file with the following content

entity Blog {
  name String required minlength(3)
  handle String required minlength(2)
}

relationship ManyToOne {
  Blog{user(login)} to User
}

when I run jhipster import-jdl app-jdl.jdl I get the following error
enter image description here

What is causing the issue and how can I fix it?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

就像说晚安 2025-01-16 19:24:20

您的应用程序身份验证类型是

"authenticationType": "jwt"

检查这篇文章,jwt 似乎还不支持它

Jhipster - JDL studio - 与用户的关系

your application auth type is

"authenticationType": "jwt"

check this post it seems its not supported in jwt yet

Jhipster - JDL studio - relationship to User

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文