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
Want to insert data structured as List<Map<String, Object>> without having to covert every row to a dto object and provide getters.
This kind of structure typically comes from query resultset, csv parser, apache camel exchange etc. The map is of column name to value.
Describe the solution you'd like
Be able to register a class serializer for Map with POJOSerializers which calls Map.get("column") with the appropriate cast.
Alternatively add built in serializer option that handles List<Map<String, ?>> type
Or possibly have the register method detect get(column-name) methods as valid serialization methods
also allow java record getter methods (which don't start with "get") to act as serialization methods
The text was updated successfully, but these errors were encountered:
Use case
Want to insert data structured as List<Map<String, Object>> without having to covert every row to a dto object and provide getters.
This kind of structure typically comes from query resultset, csv parser, apache camel exchange etc. The map is of column name to value.
Describe the solution you'd like
Be able to register a class serializer for Map with POJOSerializers which calls Map.get("column") with the appropriate cast.
Alternatively add built in serializer option that handles List<Map<String, ?>> type
Or possibly have the register method detect get(column-name) methods as valid serialization methods
also allow java record getter methods (which don't start with "get") to act as serialization methods
The text was updated successfully, but these errors were encountered: