When using PostgreSQL, ID's column are generated with a "bigint not null" type instead of 'Bigserial' wich seem to be the correct way for an autoincrement primary key column.
This is an issue when you have to use scripts to insert a batch of values , also id's value start with weird values like '90201"
infos :
"generator-jhipster": {
"jhipsterVersion": "4.10.2",
"serverPort": "8080",
"authenticationType": "session",
"hibernateCache": "no",
"clusteredHttpSession": false,
"websocket": false,
"databaseType": "sql",
"devDatabaseType": "postgresql",
"prodDatabaseType": "postgresql",
"searchEngine": false,
"messageBroker": false,
"serviceDiscoveryType": false,
"buildTool": "maven",
"enableSocialSignIn": false,
"enableSwaggerCodegen": false,
"clientFramework": "angular1",
"useSass": false,
"clientPackageManager": "yarn",
"applicationType": "monolith",
"testFrameworks": [],
"jhiPrefix": "jhi",
"enableTranslation": false
-> now maybe using a BigSerial would clean up a bit our code (the Liquibase part, for instance). And the performance could also be tested.
I'm closing this as:
Ok, thanks for the answers and the links.
I'm used to JHipster with Mysql and this id's behavior with postgres unsettled me a bit.
Maybe keep the generator like it is now by default, and set a property or a config somewhere to let user choose BigSerial over BigInt ?
@LousyJohnny it will not be worth the effort to have this as an option as it adds maintenance burden for us