Bootstrapping the EntityManagerFactory should log the name of the persistence unit being used [SPR-11333] #15957
Labels
in: data
Issues in data modules (jdbc, orm, oxm, tx)
status: backported
An issue that has been backported to maintenance branches
type: enhancement
A general enhancement
Milestone
Oliver Drotbohm opened SPR-11333 and commented
Assume you configure an
EntityManagerFactoryBean
with apackagesToScan
. If the classpath contains apersistence.xml
with a persistence unit name ofdefault
this one will be used instead of the one implicitly created by the package scan. This is probably a bit surprising.While one could argue, that as soon as you configure a
packagesToScan
, that particularEMFB
shouldn't actually look for other PUs anymore, I thing the least we should do is logging the name of the PU used eventually.Affects: 3.2.6, 4.0 GA
Referenced from: commits 88730bd, c77832b
Backported to: 3.2.7
The text was updated successfully, but these errors were encountered: