spring-projects / spring-data-mongodb

Provides support to increase developer productivity in Java when using MongoDB. Uses familiar Spring concepts such as a template classes for core API usage and lightweight repository style data access.
https://spring.io/projects/spring-data-mongodb/
Apache License 2.0
1.62k stars 1.09k forks source link

Kotlin override properties cause ambiguous field mapping error. [DATAMONGO-2250] #3113

Open spring-projects-issues opened 5 years ago

spring-projects-issues commented 5 years ago

Christoph Strobl opened DATAMONGO-2250 and commented

because the properties are repeated in the sub class. see https://kotlinlang.org/docs/reference/classes.html#overriding-properties


Reference URL: https://stackoverflow.com/questions/55417487/disambiguate-compiled-classes-in-spring-data

Issue Links:

Referenced from: commits https://github.com/spring-projects/spring-data-mongodb/commit/ffca6b504ea60a0a54f6546df478eabd11f512e4, https://github.com/spring-projects/spring-data-mongodb/commit/ebcaf7ed3e4b2f3ff2f8c05dac8b3d10d7204a22, https://github.com/spring-projects/spring-data-mongodb/commit/ff0887fd1d6724ca22a4d9c0a7953ff442733a8a

LEQADA commented 3 months ago

Any update on this little issue here, folks? I'd be happy to help 🙂