Skip to content

Fix handling of @Id property in Java records #2756

Closed
@sothawo

Description

@sothawo

spring-data-commons introduced the PersistentProperty.isReadable() method in spring-projects/spring-data-commons#2915, a method that SimpleElasticsearchPersistentProperty has had for years and that is now calling the new base implementation. This broke handling of Java record classes in so far as that the @Id annotated property of a record could not be set anymore after storing an entity in Elasticsearch while having the id autogenerated.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions