Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bootstrapping the EntityManagerFactory should log the name of the persistence unit being used [SPR-11333] #15957

Closed
spring-projects-issues opened this issue Jan 20, 2014 · 0 comments
Assignees
Labels
in: data status: backported type: enhancement
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

@spring-projects-issues spring-projects-issues commented Jan 20, 2014

Oliver Drotbohm opened SPR-11333 and commented

Assume you configure an EntityManagerFactoryBean with a packagesToScan. If the classpath contains a persistence.xml with a persistence unit name of default 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 particular EMFB 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

@spring-projects-issues spring-projects-issues added in: data status: backported type: enhancement labels Jan 11, 2019
@spring-projects-issues spring-projects-issues added this to the 4.0.1 milestone Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: data status: backported type: enhancement
Projects
None yet
Development

No branches or pull requests

2 participants