Uploaded image for project: 'DeltaSpike'
  1. DeltaSpike
  2. DELTASPIKE-1251

Make PersistenceConfigurationProvider pick up information from the config subsystem

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.7.2
    • 1.8.0
    • JPA-Module
    • None

    Description

      Currently PersistenceConfigurationProvider only looks for files named persistence-persistenceUnitName.properties.

      It would be great to also be able to pick up EntityManagerFactory configuration via our standard ConfigResolver system.

      For a PersistenceUnit named 'MyUnit' we could e.g. pick up persitence-MyUnit.properties plus all config values which start with 'deltaspike.persistence.config.MyUnit.'

      A config value
      'deltaspike.persistence.config.MyUnit.javax.persistence.password=bla'
      Would end up as javax.persistence.password=bla configuration entry

      Attachments

        Activity

          People

            struberg Mark Struberg
            struberg Mark Struberg
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: