How to modify existing entity generated with jhipster?

前端 未结 7 919
说谎
说谎 2020-12-04 12:30

I use jhipster generator to create a projet. I\'ve generated some entity manually following the information provided in jhipster documentation :

7条回答
  •  無奈伤痛
    2020-12-04 12:40

    What I've done to modify jhipster entity like a Relationship to add new tables was:

    1. (save project before anything happens :p) yo jhipster:entity TableToEdit and Edit whatever you want.Who to editTableOrAdd
    2. Then add the new tables.(optional)
    3. I had then I just had to do change or remove all the tables of the DataBase, to generate the new fields and relations on the SQL part automatically.

    Note: If after this steps, it has any error, serverError or something I regenerate de entityregenerate Entity. Of course if you want to keep all your data this is not a good alternative.

提交回复
热议问题