Skip to content

Add option to register custom class serializers #2291

Description

@mikeyg123

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

Activity

  1. github-actions commented on Apr 9, 2026

    @github-actions

    This issue has been automatically marked as stale because it has not had activity in the last year. It will be closed in 30 days if no further activity occurs. Please feel free to leave a comment if you believe the issue is still relevant. Thank you for your contributions!

  2. added this to the 0.10.0 milestone on Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions