代码之家  ›  专栏  ›  技术社区  ›  Mohammed Housseyn Taleb

为什么我的JDL文件生成的域在代码中有错误?

  •  0
  • Mohammed Housseyn Taleb  · 技术社区  · 7 年前

    嗨,我正在使用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中出错,如下所示

    titre and S() are scaffolding error

    我在JDL文件中犯了错误吗?所以我得到了这些欺诈错误。 谢谢你

    我在中创建了一个问题 JHipster

    1 回复  |  直到 7 年前
        1
  •  0
  •   Mohammed Housseyn Taleb    7 年前

    新版本中更正的问题 更多信息,请访问Github发行 tracker

    推荐文章