Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.7.2
-
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