I use jhipster generator to create a projet. I\'ve generated some entity manually following the information provided in jhipster documentation :
You can modify entity by tow ways.
First(using jdl-studio):
update .jh or .jdl file by following steps:
1) export .jh file using jhipster export-jdl myApp-jdl.jh command to root folder of your project. Also you can export the .jh file to particular path using jhipster export-jdl myPath/myApp-jdl.jh
2) here, you can edit your existing entities. You can also add new entities.
3) Then save this myApp-jdl.jh file to root folder of your project and run jhipster import-jdl myApp-jdl.jh or you can store it anywhere on your system and just give path to import from! like, jhipster import-jdl myPath/myApp-jdl.jh
Second(using JHipster CLI):
as suggested on official documentation jhipster.tech/creating-an-entity/ you can update your entity with following steps:
1) type same command jhipster entity that we use to create entity using CLI. Here would be the entity name that we want to modify.
2) it'll give you different options like, re generate the entity, add more fields and relationships, remove fields and relationships etc..
3) make modifications as per our requirement.
NOTE: it will automatically remove the manual changes that you did on pre-built JHipster project!
SOLUTION:
1) commit the code before modifying or adding new entity.
2) when it'll ask you to overwrite the changes to files, you can skip overwrite option as per your requirement. Just a suggestion is not to chage navbar html file.
3) after that, you can open it to Intellij or Eclipse. And then you can modify other changed files by local history. In Intellij, local history will be in VCS menu.