Skip to content

Ambiguous field mapping detected #4250

@kassepro1

Description

@kassepro1

Describe the bug
Ambiguous field mapping detected; Both protected volatile int com.ibm.fhir.model.type.Element.hashCode and private volatile int com.ibm.fhir.model.type.code.IdentifierUse.hashCode
Environment
Java 21
Spring boot 3..3.3
Mongo db

  1. See error
    Ambiguous field mapping detected; Both protected volatile int com.ibm.fhir.model.type.Element.hashCode and private volatile int com.ibm.fhir.model.type.code.IdentifierUse.hashCode
    Expected behavior
    A clear and concise description of what you expected to happen.

Additional context
Caused by: org.springframework.data.mapping.MappingException: Ambiguous field mapping detected; Both protected volatile int com.ibm.fhir.model.type.Element.hashCode and private volatile int com.ibm.fhir.model.type.code.IdentifierUse.hashCode map to the same field name hashCode; Disambiguate using @field annotation
at org.springframework.data.mongodb.core.mapping.BasicMongoPersistentEntity$AssertFieldNameUniquenessHandler.assertUniqueness(BasicMongoPersistentEntity.java:347) ~[spring-data-mongodb-4.3.0.jar:4.3.0]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions