isurikz
isurikz

Reputation: 41

Will it be possible to update jhipster entity without overwriting custom code

According to the jhipster web site once we decide to update entity then the custom code will be overwriting. Please suggest a way to update entity preserving the existing custom code. https://www.jhipster.tech/creating-an-entity/

Upvotes: 0

Views: 494

Answers (2)

Alejandro
Alejandro

Reputation: 826

You could always extend the generated entity (but not the endoints as it is not possible)

EDIT: endopits can be extended.

Upvotes: 1

chafiq gouasmia
chafiq gouasmia

Reputation: 41

i think the safest way to solve this is :

  1. Creating a new Jhipster project
  2. Applying the updated JDL to it
  3. Merging the custom code to newly created application

Of corse you have to use git

Upvotes: 2

Related Questions