How to modify existing entity generated with jhipster?

前端 未结 7 958
说谎
说谎 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:54

    For jhipster 5.7.0 you can run the entity command again and it will ask if you want to modify it.

     % jhipster entity device                                 
    INFO! Using JHipster version installed locally in current project's node_modules
    INFO! Executing jhipster:entity device
    INFO! Options: from-cli: true
    
    Found the .jhipster/Device.json configuration file, entity can be automatically generated!
    
    
    The entity device is being updated.
    
    ? Do you want to update the entity? This will replace the existing files for this entity, all your custom code will be overwritten 
      Yes, re generate the entity 
    ❯ Yes, add more fields and relationships 
      Yes, remove fields and relationships 
      No, exit
    

提交回复
热议问题