hibernate 5 sequencegenerator not giving the right value

后端 未结 1 884
时光说笑
时光说笑 2020-12-06 11:58

After migrating to Hibernate 5.2.7, I seem to be getting incorrect values for the id field.

My code:

@Id @SearchableId
@GeneratedValue(strategy=Gener         


        
相关标签:
1条回答
  • 2020-12-06 12:31

    Actually when you migrate to the new Hibernate version 5.2.7, hibernate.id.new_generator_mappings defaults to true.

    For backward compatibility you should change this flag to false.

    For more information please search the userguide for new_generator_mappings: - http://docs.jboss.org/hibernate/orm/5.2/userguide/html_single/Hibernate_User_Guide.html

    0 讨论(0)
提交回复
热议问题