jhipster import-jdl 过滤器错误创建实体过滤器
jhipster import-jdl filter error creating entities filters
我有一个用 Jhipster 4.9 制作的项目,在我的 linux 我有 jhipster 4.13.3
当我 运行 'jhipster import-jdl src/model/Model.jdl'
我收到这个错误
正在解析jdl。
发生了错误:
SyntaxError 错误
信息:
应为“/”、"angularSuffix"、"dto"、"entity"、"enum"、"except"、"microservice"、"noFluentMethod", "paginate", "relationship", "search", "service", "skipClient", "skipServer", ['\n'|'\t'|' \r'|' '| | ]、[A-Z_],或输入结束但找到 "f"。*
这是我的Model.jdl
/**
* Generated by JHipster IDE plugin
*/
entity Region {
regionName String
}
entity Country {
countryName String
}
// an ignored comment
/** not an ignored comment */
entity Location {
streetAddress String
postalCode String
city String
stateProvince String
}
entity Department {
departmentName String required
}
/**
* Task entity.
* @author The JHipster team.
*/
entity Task {
title String
description String
}
/**
* The Employee entity.
*/
entity Employee {
/**
* The firstname attribute.
*/
firstName String
lastName String
email String
phoneNumber String
hireDate ZonedDateTime
salary Long
commissionPct Long
}
entity Job {
jobTitle String
minSalary Long
maxSalary Long
}
entity JobHistory {
startDate ZonedDateTime
endDate ZonedDateTime
language Language
}
enum Language {
FRENCH, ENGLISH, SPANISH
}
relationship OneToOne {
Country{region} to Region
}
relationship OneToOne {
Location{country} to Country
}
relationship OneToOne {
Department{location} to Location
}
relationship ManyToMany {
Job{task(title)} to Task{job}
}
// defining multiple OneToMany relationships with comments
relationship OneToMany {
Employee{job} to Job,
/**
* A relationship
*/
Department{employee} to
/**
* Another side of the same relationship
*/
Employee
}
relationship ManyToOne {
Employee{manager} to Employee
}
// defining multiple oneToOne relationships
relationship OneToOne {
JobHistory{job} to Job,
JobHistory{department} to Department,
JobHistory{employee} to Employee
}
// Set pagination options
paginate JobHistory, Employee with infinite-scroll
paginate Job with pagination
dto * with mapstruct
filter * except JobHistory,Region
// Set service options to all except few
service all with serviceImpl except Employee, Job
// Set an angular suffix
angularSuffix * with mySuffix
.jdl 在 eclipse 中没有显示错误。
我正在尝试实现过滤实体。
任何人都可以帮助我。
我将我的项目更新到 jhipster 4.13.3,它似乎可以工作。但是生成的代码有错误,class Location_ , Country_ 在代码中有引用但不存在于任何地方。所以我必须创建 de classes @StaticMetamodel(Employee.class) public class Employee_
我有一个用 Jhipster 4.9 制作的项目,在我的 linux 我有 jhipster 4.13.3
当我 运行 'jhipster import-jdl src/model/Model.jdl'
我收到这个错误
正在解析jdl。 发生了错误: SyntaxError 错误 信息: 应为“/”、"angularSuffix"、"dto"、"entity"、"enum"、"except"、"microservice"、"noFluentMethod", "paginate", "relationship", "search", "service", "skipClient", "skipServer", ['\n'|'\t'|' \r'|' '| | ]、[A-Z_],或输入结束但找到 "f"。*
这是我的Model.jdl
/**
* Generated by JHipster IDE plugin
*/
entity Region {
regionName String
}
entity Country {
countryName String
}
// an ignored comment
/** not an ignored comment */
entity Location {
streetAddress String
postalCode String
city String
stateProvince String
}
entity Department {
departmentName String required
}
/**
* Task entity.
* @author The JHipster team.
*/
entity Task {
title String
description String
}
/**
* The Employee entity.
*/
entity Employee {
/**
* The firstname attribute.
*/
firstName String
lastName String
email String
phoneNumber String
hireDate ZonedDateTime
salary Long
commissionPct Long
}
entity Job {
jobTitle String
minSalary Long
maxSalary Long
}
entity JobHistory {
startDate ZonedDateTime
endDate ZonedDateTime
language Language
}
enum Language {
FRENCH, ENGLISH, SPANISH
}
relationship OneToOne {
Country{region} to Region
}
relationship OneToOne {
Location{country} to Country
}
relationship OneToOne {
Department{location} to Location
}
relationship ManyToMany {
Job{task(title)} to Task{job}
}
// defining multiple OneToMany relationships with comments
relationship OneToMany {
Employee{job} to Job,
/**
* A relationship
*/
Department{employee} to
/**
* Another side of the same relationship
*/
Employee
}
relationship ManyToOne {
Employee{manager} to Employee
}
// defining multiple oneToOne relationships
relationship OneToOne {
JobHistory{job} to Job,
JobHistory{department} to Department,
JobHistory{employee} to Employee
}
// Set pagination options
paginate JobHistory, Employee with infinite-scroll
paginate Job with pagination
dto * with mapstruct
filter * except JobHistory,Region
// Set service options to all except few
service all with serviceImpl except Employee, Job
// Set an angular suffix
angularSuffix * with mySuffix
.jdl 在 eclipse 中没有显示错误。 我正在尝试实现过滤实体。
任何人都可以帮助我。
我将我的项目更新到 jhipster 4.13.3,它似乎可以工作。但是生成的代码有错误,class Location_ , Country_ 在代码中有引用但不存在于任何地方。所以我必须创建 de classes @StaticMetamodel(Employee.class) public class Employee_