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
in CachedIntrospectionResults
we have:
java.beans.Introspector.java:205
where beanInfo = new Introspector(beanClass=MyModel.class, null, USE_ALL_BEANINFO).getBeanInfo()
it returns
This commit makes sure to skip the class property ob Object when mapping maps and their keys inside an Update.
Closes#3566
Original pull request: #3577.
This commit makes sure to skip the class property ob Object when mapping maps and their keys inside an Update.
Closes#3566
Original pull request: #3577.
Spring data mongodb version: 3.0.5.RELEASE
If i'm calling
mongoOperations.updateFirst(query, Map.of("field1.class", "value"), MyModel.class);
where the model has the following structure:
I receive:
Couldn't find PersistentEntity for type java.lang.Object!
After debugging, I have realized that:
in CachedIntrospectionResults
we have:
java.beans.Introspector.java:205
where
beanInfo = new Introspector(beanClass=MyModel.class, null, USE_ALL_BEANINFO).getBeanInfo()
it returns
which causes issues later on, as this is not the getter intended to be used.
I believe class property descriptor should be filtered, but I wonder how it may affect other stuff.
The text was updated successfully, but these errors were encountered: