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

HHH-11845 - Warn user when multiple persistence-units use the same name #2027

Closed
wants to merge 2 commits into
base: master
from

Conversation

Projects
None yet
2 participants
@dreab8
Member

dreab8 commented Oct 15, 2017

https://hibernate.atlassian.net/browse/HHH-11845

The PU names clash was performed for names belonging to the same persistence.xml file but if the same PU name is present in two different files, like in case of testing, the clash does not produce any warning. The a solution is to have a class private final Map<String,ParsedPersistenceXmlDescriptor> persistenceUnits; field, so for every PU we can check if there is already one with the same name.

@vladmihalcea

This comment has been minimized.

Show comment
Hide comment
@vladmihalcea

vladmihalcea Jan 18, 2018

Member

Applied upstream, thanks

Member

vladmihalcea commented Jan 18, 2018

Applied upstream, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment