Skip to content

Jakarta data provider configurable through properties or server.xml #35780

Description

@vincent-nagy

Describe the use case that you want to enable:
Currently it is only possible to configure jakarta data provider specific properties through a persistence.xml. An example is eclipselink.jdbc.batch-writing. While it is possible to point the @repository to a persistence unit, it is undesirable clutter. This should be configurable using a microprofile property or in the server.xml

Describe why this is important to you:
The value of this proposition is a cleaner codebase where repetition is reduced since every repository needs to be configured to point to the same persistence unit. The configuration is extracted from the code and is centralised with other configuration.

Additional context
The current workaround is documented at https://openliberty.io/docs/latest/data-store-configuration.html#elpersistence

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions