-
我分别生成了JHipster应用程序前端和后端。 jhipster-跳过客户端 jhipster --skip-server --db = sql --auth = jwt
-
将jdl文件导入到前端和后端。 jhipster import-jdl 21poindt.jh --skip-client jhipster import-jdl 21points.jh --skip-server
-
后端和前端运行没有错误。
-
生成的实体的CRUD功能正常工作,但搜索字段丢失。
-
当我使用相同的jdl文件生成JHipster,并且后端和前端一起生成时,搜索字段将按预期显示。
我做错了什么?如何在单独的JHispter前端中启用搜索字段?
entity Points {
date LocalDate required,exercise Integer,meals Integer,alcohol Integer,notes String maxlength(140)
}
entity Weight {
timestamp ZonedDateTime required,weight Double required
}
entity BloodPressure {
timestamp ZonedDateTime required,systolic Integer required,diastolic Integer required
}
entity Preferences {
weeklygoal Integer required min(10) max(21),weightUnits Units required
}
enum Units {
KG,LB
}
relationship OneToOne {
Preferences{user(login)} to User
}
relationship ManyToOne {
BloodPressure{user(login)} to User,Weight{user(login)} to User,Points{user(login)} to User
}
// Set pagination options
paginate BloodPressure,Weight with infinite-scroll
paginate Points with pagination
// Use Data Transfert Objects (DTO)
dto * with mapstruct
// Set service options to all except few
service all with serviceImpl
filter Points