In the past, Hibernate scoped the sequences per entity and then came JPA saying that this should be global, so in order to allow both, a setting was introduced to control this. You can enable global scoping by setting hibernate.jpa.compliance.global_id_generators to true. Also see the documentation about the details: Hibernate ORM 5.5.3.Final User Guide
I see. But do you know or may be help us on how to set that property in spring boot application.yml or some another way. Since we don’t use hibernate.cfg.xml
By default id generators are local in keeping with Hibernate’s legacy and much more sane behavior.
JPA does require these to be globally scoped. If you wish the JPA behavior, enable JPA compliance (hibernate.jpa.compliance.global_id_generators). Or use JPA bootstrapping which then enables this by default.