You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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]
The text was updated successfully, but these errors were encountered:
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
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]
The text was updated successfully, but these errors were encountered: