I started a new JHipster project recently and I have a requirement in the project for extending a built-in User entity.
For example to add some new attributes (and columns in the database to persist those). But, since this is built-in functionality and the User entity is not listed in .jhipster folder I'm wandering of a proper way to do it.
The simplest option would be to change User.java and liquibase migration xmls and all associated files but that would probably be an obstacle for future jhipster upgrades (running
Easiest solution to be able to easily follow JHipster upgrades is to create a new entity (e.g. UserExtraInfo) with a one-to-one relationship with User and the owner of the relationship should be the new entity as we don't want to modify User. You'd generate the new entity using
Due to a related issue you must use release JHipster 3.5.0 at least to get this working.