LinuxForHealth / FHIR

The LinuxForHealth FHIR® Server and related projects
https://linuxforhealth.github.io/FHIR
Apache License 2.0
321 stars 156 forks source link

Ambiguous field mapping detected #4250

Open kassepro1 opened 1 month ago

kassepro1 commented 1 month ago

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]