Introduce database-name attribute in <jdbc:embedded-database /> [SPR-12835] #17432
Labels
in: data
Issues in data modules (jdbc, orm, oxm, tx)
in: test
Issues in the test module
type: enhancement
A general enhancement
Milestone
Sam Brannen opened SPR-12835 and commented
Status Quo
Since its inception, the
<jdbc:embedded-database />
XML namespace element (or more specifically theEmbeddedDatabaseBeanDefinitionParser
) has set the name of the embedded database that it creates to the value of theid
attribute. This makes it impossible to reuse an XML configuration file containing such a bean definition in multiple application contexts loaded within the same JVM -- for example, by importing the common test data source configuration into multiple contexts loaded by the Spring TestContext Framework.Furthermore, the
EmbeddedDatabaseBuilder
already provides support for setting thename
in Java Config.Deliverables
database-name
attribute in<jdbc:embedded-database />
to bring XML configuration of embedded databases on par with the support in Java Config.Affects: 3.0 GA
Issue Links:
Referenced from: commits ab771df, c36c6cb
The text was updated successfully, but these errors were encountered: