Hi
I have entity A which has structure
A
- timestamp Date
- mapValues map[text,udt_b]
I am fetching and mapping results to bean using
@Query("Select * from A where ..")
CompletionStage<MappedAsyncPagingIterable<A>> getEntity(...);
I am able to read all values and are getting mapped to POJO howerver POJO internally has additional UDT functions. So when POJO is serialized to Json I get below exceptions
[simple type, class com.datastax.dse.driver.internal.core.tracker.MultiplexingRequestTracker];
nested exception is com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class com.datastax.dse.driver.internal.core.tracker.MultiplexingRequestTracker and
no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS)
Jackson is finding below fields in the POJO>java.util.LinkedHashMap[\"mapValues\"]->com.myapp.udt_B[\"udtValue\"]->com.datastax.oss.driver.internal.core.data.DefaultUdtValue[\"type\"]->com.datastax.oss.driver.internal.core.type.DefaultUserDefinedType[\"attachmentPoint\"]->com.datastax.oss.driver.internal.core.context.DefaultDriverContext[\"requestTracker\"])"}
However instead of Map if my Entity is normal entity with UDT as field
A
- timestamp Date
- b udt_b
everything works as expected
Is this a bug ? or do i need to enable any setting to get Pojo Mapped
Regards
Amol