Skip to content

Updating an entity updates the creation timestamp (and the update timestamp) #2138

@DavideD

Description

@DavideD

See quarkusio/quarkus#39016

We need to check if this is actually happening in Hibernate Reactive and add tests for it (if we don't have some already).

After updating an entity both createdAt and updatedAt are returned with the the updatedAt value. However, createdAt is not being persisted to the database. When I list the records from the database the results are returned correctly. I'm using the same DTO object for both operations.

Column(name = "created_at", updatable = false, nullable = false)
@CreationTimestamp
public LocalDateTime createdAt;

@Column(name = "updated_at", nullable = false)
@UpdateTimestamp
public LocalDateTime updatedAt;

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingquarkusThe issue links an issue in Quarkus

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions