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
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]
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
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]