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
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