How to modify existing entity generated with jhipster?

前端 未结 7 943
说谎
说谎 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条回答
  •  猫巷女王i
    2020-12-04 12:59

    1) Edit the json file representing your entity (add/remove field, the syntax is pretty easy, check in the end of the file if is required any change to the general entity properties like 'fieldsContainOneToMany'...), you'll find it in:

    /.jhipster/entityName.json
    

    2) Build the code.

    3) In the root of your project run the command:

    yo jhipster:entity entityName
    

    NOTE: this command by default overwrite all your manual changes. I recommend to do a commit on a VCS repository before to run this command to eventually revert any not required change.

    4) run

    mvn liquibase:diff
    

提交回复
热议问题