嗨,我正在使用Jhipster并在JDL中进行一些培训,
所以当我从我的JDL生成实体模型时,我得到了一些代码脚手架错误,这是由于我的JDL中的一个错误还是Jhipster生成器中的一个问题?
entity Club{
federation String,
nomClub String,
dateFondation LocalDate
}
entity Boxeur {
nom String,
prenom String,
dateNaissance LocalDate,
lieuNaissance String,
dateInscription LocalDate
}
entity Entraineur{
nom String,
prenom String,
dateNaissance LocalDate,
lieuNaissance String,
president Boolean
}
enum LieuSeance {
SALLE,
STADE,
MONTAGNE,
AUTRE
}
entity TypeSeance{
typeSeance TypeSeance0
}
enum TypeSeance0 {
COMPETITION,
SPARRING,
ENDURANCE,
STREATCHING,
TECHNIQUE,
PHYSIQUE,
ENTRETIEN,
AUTRE
}
entity Seance{
titre String,
detail String,
dateSeance LocalDate,
lieu LieuSeance
}
entity Payement{
montant Long,
datePayement LocalDate
}
relationship OneToMany{
Entraineur{seances(titre)} to Seance{entreneur(nom)},
Boxeur{versement} to Payement,
TypeSeance to Seance
}
relationship OneToOne{
Club{president(nom)} to Entraineur
}
relationship ManyToMany{
Seance{participants(nom)} to Boxeur{assistes(titre)}
}
paginate all with pagination
dto * with mapstruct
service all with serviceImpl
错误在Seist.java中,添加和删除参与者在ScFoLoLD中出错,如下所示
我在JDL文件中犯了错误吗?所以我得到了这些欺诈错误。
谢谢你
我在中创建了一个问题
JHipster