Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@Version type should support primitive #2652

Merged
merged 1 commit into from
Nov 20, 2023
Merged

@Version type should support primitive #2652

merged 1 commit into from
Nov 20, 2023

Conversation

JaneWardSandy
Copy link
Contributor

@JaneWardSandy JaneWardSandy commented Nov 16, 2023

@Version annotated not null field in Kotlin, see 6.3.2 Optimistic locking

@Entity
data class Student(
        @Id @GeneratedValue
        var id: Long?,
        @Version
        val version: Long,
)

will throw DataAccessException with Unsupported @Version type: long

@JaneWardSandy JaneWardSandy changed the title fix: @Version type support primitive @Version type should support primitive Nov 16, 2023
@radovanradic
Copy link
Contributor

Thanks for contribution

@radovanradic radovanradic merged commit 33abd64 into micronaut-projects:master Nov 20, 2023
38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants