spring-projects / spring-projects/spring-modulith

Overriding event table name

Open
#417 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
1.2k
Forks
222
PR merge metrics
No merged PRs in 30d

Description

Hello. Is there any way to override the name of the event_publication table to record events?
Prior to version 1.1.0, it was possible to create own repository that extends EventPublicationRepository and, accordingly, use your own entity, which is mapped to a table with the desired name. In 1.1.0, the JpaEventPublicationRepository repository became package private same as EventPublicationRepository, which made it impossible to override/reimplement it in any simple way.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading EventPublicationRepository and JpaEventPublicationRepository, focusing on their visibility and how the event_publication table is mapped. Trace the repository and entity configuration used in version 1.1.0. Done means applications can configure a custom event publication table name without reimplementing inaccessible repository classes.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring-boot
Domain
backend, database
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.