我正在尝试通过我的jhipster项目实施一些过滤。我为某些实体添加了“ jpaMetamodelFiltering”:true,并再次生成了它们。
问题是我现在收到很多这样的错误:
/C:/Users/User/Documents/Projet/bloombooking/bloombooking-backend/src/main/java/com/bloombooking/app/service/SubCategoryQueryService.java:[89,96] cannot find symbol
symbol: variable SubCategory_
location: class com.bloombooking.app.service.SubCategoryQueryService
[ERROR] /C:/Users/User/Documents/Projet/bloombooking/bloombooking-backend/src/main/java/com/bloombooking/app/service/SubCategoryQueryService.java:[92,96] cannot find symbol
symbol: variable SubCategory_
location: class com.bloombooking.app.service.SubCategoryQueryService
[ERROR] /C:/Users/User/Documents/Projet/bloombooking/bloombooking-backend/src/main/java/com/bloombooking/app/service/SubCategoryQueryService.java:[96,81] cannot find symbol
symbol: variable Category_
location: class com.bloombooking.app.service.SubCategoryQueryService
用于生成服务的json:
{
"fluentMethods": true,
"clientRootFolder": "",
"relationships": [
{
"relationshipName": "category",
"otherEntityName": "category",
"relationshipType": "many-to-one",
"otherEntityField": "id",
"otherEntityRelationshipName": "subCategories"
},
{
"relationshipName": "services",
"otherEntityName": "service",
"relationshipType": "many-to-many",
"ownerSide": false,
"otherEntityRelationshipName": "subCategories"
}
],
"fields": [
{
"fieldName": "name",
"fieldType": "String"
},
{
"fieldName": "order",
"fieldType": "Integer"
}
],
"changelogDate": "20191214172048",
"dto": "no",
"searchEngine": false,
"service": "serviceImpl",
"entityTableName": "sub_category",
"databaseType": "sql",
"jpaMetamodelFiltering": true,
"pagination": "infinite-scroll"
}
当我启动隐藏在成千上万“找不到符号”错误中间的mvnw时,还有其他错误(忘记生成其中一个类)。
当我解决这些问题时,“找不到符号”错误消失了。