Since you are using the identity generation strategy, could you please try setting the following property <property name="hibernate.id.new_generator_mappings" value="false" />