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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants