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

wants to merge 2 commits into
base: master


None yet
2 participants

dreab8 commented Oct 15, 2017

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.


This comment has been minimized.

Show comment
Hide comment

vladmihalcea Jan 18, 2018


Applied upstream, thanks


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