Jhipster 使用“过滤实体时出现问题”;与jpaMetamodelFiltering“不兼容”;
我不熟悉使用Jhipster,我生成了一个网关应用程序,在该应用程序中,我试图创建允许过滤的实体,如中所示 我的JDL应用程序如下所示:Jhipster 使用“过滤实体时出现问题”;与jpaMetamodelFiltering“不兼容”;,jhipster,Jhipster,我不熟悉使用Jhipster,我生成了一个网关应用程序,在该应用程序中,我试图创建允许过滤的实体,如中所示 我的JDL应用程序如下所示: application { config { baseName Appcommun, applicationType gateway, packageName co.appcommunity.gateway, serviceDiscoveryType eureka, authenticationType jwt,
application {
config {
baseName Appcommun,
applicationType gateway,
packageName co.appcommunity.gateway,
serviceDiscoveryType eureka,
authenticationType jwt,
databaseType sql,
devDatabaseType h2Disk,
prodDatabaseType mysql,
cacheProvider hazelcast,
buildTool maven,
clientFramework angularX,
enableTranslation true,
nativeLanguage es,
languages [es, en],
testFrameworks [protractor]
}
entities *
}
entity Community {
name String required unique,
description String,
code String required unique,
location String,
address String required,
logo String
}
dto * with mapstruct
filter Community
service * with serviceClass
当我运行Jhipster jdl jdlfile.jdl
您可以看到以下消息:
信息:已为社区设置筛选器选项,如果未设置其他值,“服务”的“serviceClass”值将为此实体设置
警告!与jpaMetamodelFiltering不兼容,正在禁用
生成的实体JSON如下所示:
{
"name": "Community",
"fields": [
{
"fieldName": "name",
"fieldType": "String",
"fieldValidateRules": ["required", "unique"]
},
{
"fieldName": "description",
"fieldType": "String"
}
],
"relationships": [],
"entityTableName": "community",
"dto": "mapstruct",
"pagination": "no",
"service": "serviceClass",
"jpaMetamodelFiltering": false,
"fluentMethods": true,
"readOnly": false,
"embedded": false,
"applications": ["easycommuniy"],
"databaseType": "sql",
"changelogDate": "20210603013758"
}
未生成任何筛选器服务
有人能告诉我我做错了什么吗
有人能给我一些提示吗?我做错了什么
我尝试将jpaMetamodelFiltering设置为true,并使用相同的结果重新生成实体
谢谢。我知道实体筛选与被动过滤不兼容,请参阅,我不确定它是否也会影响网关。您应该打开github问题