fixed "packagesToScan" to avoid additional provider scan (SPR-8936)

This commit is contained in:
Juergen Hoeller 2011-12-21 12:41:37 +01:00 committed by Chris Beams
parent 02452a1af9
commit e0231438cd
1 changed files with 1 additions and 1 deletions

View File

@ -390,7 +390,7 @@ public class DefaultPersistenceUnitManager
private SpringPersistenceUnitInfo buildDefaultPersistenceUnitInfo() {
SpringPersistenceUnitInfo scannedUnit = new SpringPersistenceUnitInfo();
scannedUnit.setPersistenceUnitName(this.defaultPersistenceUnitName);
scannedUnit.excludeUnlistedClasses();
scannedUnit.setExcludeUnlistedClasses(true);
if (this.packagesToScan != null) {
for (String pkg : this.packagesToScan) {
try {