Skip to content

AnnotationBasedPersistentProperty cannot resolve Id properties [Wrong Id class used] #3283

Open
@SledgeHammer01

Description

@SledgeHammer01

BasicPersistentEntity::returnPropertyIfBetterIdPropertyCandidateOrNull
--> AnnotationBasedPersistentProperty::isIdProperty

https://github.com/spring-projects/spring-data-commons/blob/main/src/main/java/org/springframework/data/mapping/model/AnnotationBasedPersistentProperty.java#L78-L79

Shouldn't the Id.class used here be jakarta.persistence.id?

Otherwise the RelationalEntityMetadata doesn't contain the id column.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions