You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: org.springframework.orm/src/main/java/org/springframework/orm/jpa/persistenceunit/DefaultPersistenceUnitManager.java
+11-2Lines changed: 11 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -353,7 +353,7 @@ public void preparePersistenceUnitInfos() {
353
353
}
354
354
postProcessPersistenceUnitInfo(pui);
355
355
Stringname = pui.getPersistenceUnitName();
356
-
if (!this.persistenceUnitInfoNames.add(name)) {
356
+
if (!this.persistenceUnitInfoNames.add(name) && !isPersistenceUnitOverrideAllowed()) {
357
357
StringBuildermsg = newStringBuilder();
358
358
msg.append("Conflicting persistence unit definitions for name '").append(name).append("': ");
0 commit comments