generator-jhipster-postgres-uuid
JHipster module, Convert id's to postgres uuid's
Introduction
This is a JHipster module, that is meant to be used in a JHipster application. and will generate uuid's for instead for id fields.
Support:
- Currently, only tested with jhipster 7
Will modify your:
- entities
- services (serviceImpl and serviceClasses)
- resources
- dto's (use the entitySuffix)
- liquibase change sets and remove the sequence generator
- unit and integration tests
- fake data
todo
- add tests
- cleanup code
Not supported / tested yet:
- Reactive application (not tested)
- jpa model filtering
- message brokers
- search engines
- front-end support
- micro services
Prerequisites
As this is a JHipster module, we expect you have JHipster and its related tools already installed:
Installation
With NPM
To install this module:
npm install -g generator-jhipster-postgres-uuid
To update this module:
npm update -g generator-jhipster-postgres-uuid
With Yarn
To install this module:
yarn global add generator-jhipster-postgres-uuid
To update this module:
yarn global upgrade generator-jhipster-postgres-uuid
Usage
yo jhipster-postgres-uuid
Running the module local for development
During development of the module:
- Make a link for npm so that we can use it in the jhipster project
cd generator-jhipster-postgres-uuid
npm link
- Link the module to jhipster
You could also use Yarn for this if you prefer (my-app is the folder of your jhipster application)
cd my-app
npm link generator-jhipster-postgres-uuid
License
MIT © Jan-Jaap Arends