can';在jhipster上创建新实体时,请不要选择类型枚举

can';在jhipster上创建新实体时,请不要选择类型枚举,jhipster,Jhipster,当我尝试在jhipster上创建新实体时,如果我选择添加带有枚举类型的字段,我会遇到以下问题: The entity Produit is being created. The entity Produit is being created. Generating field #1 ? Do you want to add a field to your entity? Yes ? What is the name of your field? categorie ? What is the

当我尝试在jhipster上创建新实体时,如果我选择添加带有枚举类型的字段,我会遇到以下问题:

The entity Produit is being created.
The entity Produit is being created.

Generating field #1

? Do you want to add a field to your entity? Yes
? What is the name of your field? categorie
? What is the type of your field? Enumeration (Java enum type)
? Do you want to add validation rules to your field? (y/N) "
我找不到这样一个问题:“枚举的类名是什么?”


我在windows 10上使用openjdk 11.0.7,节点v12.16.3这很可能是JHipster 6.9.0的回归,我已经能够在6.9.0中重现它,而在6.8.0中它运行良好

您应该在github上报告此问题

作为一种解决方法,您可以使用
npm安装-g生成器安装6.8.0-jhipster@6.8.0
并从空目录启动新项目,因为jhipster 6.9.0已在当前项目目录中本地安装

或者,您可以使用JDL,我在6.9.0中对其进行了测试,它工作正常,创建一个
entities.JDL
文件,如下所示(请参阅),然后使用
jhipster import JDL entities.JDL

enum Categorie {
  ONE, TWO
}


entity Produit {
  categorie Categorie
}

我目前也面临着这个问题。谢谢,6.8.0版本可以正常工作。我已经尝试使用import jdl commande,但是生成器在使用jdl位置的绝对路径时找不到文件位置,这取决于您使用的shell,如果您使用powershell:
jhipster import jdl。\entities.jdl
工作正常