PostgreSQL with automatic growth Grails

class abc{ Integer id String name } class xyz { Integer id Integer project_id String name } 

When I save the object of the abc object, successfully save with some id (say 12), now when I save the object xyz, its index increases to (abc.id + 1).

+4
source share
1 answer

Grails uses the [hibernate_sequence] sequence to determine the identifier for new objects stored in the database, whether you want to assign a different type of identifier that you must read grails docs .

+2
source

All Articles