Skip to content

@Version used with @CurrentTimestamp causes UnsupportedOperationException #3230

@roguebee-droid

Description

@roguebee-droid

When using @Version with @CurrentTimestamp on an Entity field it causes an exception shown below. Example can be found here https://github.com/roguebee-droid/hibernate-reactive/blob/Version-with-CurrentTimestamps-annotation-causing-UnsupportedOperationException/hibernate-reactive-core/src/test/java/org/hibernate/reactive/TimestampTest.java

Gradle Test Executor 5 > TimestampTest > test(VertxTestContext) FAILED
    java.lang.UnsupportedOperationException: generated version attribute not supported in Hibernate Reactive
        at org.hibernate.reactive.engine.impl.ReactiveEntityRegularInsertAction.processInsertGeneratedProperties(ReactiveEntityRegularInsertAction.java:110)
        at org.hibernate.reactive.engine.impl.ReactiveEntityRegularInsertAction.lambda$reactiveExecute$1(ReactiveEntityRegularInsertAction.java:73)
        at java.base/java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:1171)
        at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:531)
        at java.base/java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:2206)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions