Uploaded image for project: 'Debezium'
  1. Debezium
  2. DBZ-4587

Quarkus outbox extension should use custom entity class for customization

    XMLWordPrintable

Details

    • Task
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • None
    • 2.2.0.Alpha2
    • outbox
    • None
    • False
    • False

    Description

      The structure of the outbox table is currently configured by a range of configuration properties. As of DBZ-4317, this was further built out by allowing for additional custom fields/columns to be configured. This is becoming a bit unwieldy, and a more Java-based way of configuring that entity is desirable. As per ccranfor@redhat.com, we could have this:

      • Default outbox entities get contributed without the need for any user configuration or entity mappings at all.
      • Users could extend the default outbox entities and add only the extra bits, think of their custom outbox entity mapped as @Entity where-as the default outbox implementation is mapped using @MappedSuperclass.
      • Users could supply their own outbox entity without extending the supplied entity if they want full 100% control over the mapping, using an @Entity.

      As part of this rework we should also re-consider how any additional properties are to be provided in ExportedEvent implementations. Instead of exposing them via a map, we could support retrieval from getters corresponding to the configured layout of the outbox event entity.

      Attachments

        Issue Links

          Activity

            People

              ccranfor@redhat.com Chris Cranford
              gunnar.morling Gunnar Morling
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: