Skip to content

@Version attribute isn't set as 0 when creating a new entity #608

@dyleph

Description

@dyleph

Hi team,

I am upgrading com.vladmihalcea:hibernate-types-55 from 2.17.3 to 2.21.1, and get some failing tests due to @Version attribute value is not as expected.
The test is about creating a new entity and check its version is 0.
But actually the version is 1, which is not as expected.

I tried to test on several versions between 2.17.3 and 2.21.1. It seems that since 2.20.0, the issue starts happening.

Could you please help to check if is there any change about the default value of @Version attribute? Thank you :)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions