mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Improve exception message for JPA entity scanning
This commit is contained in:
+1
-1
@@ -332,7 +332,7 @@ public class LocalSessionFactoryBuilder extends Configuration {
|
||||
}
|
||||
}
|
||||
catch (Throwable ex) {
|
||||
throw new MappingException("Failed to read candidate component class: " + resource, ex);
|
||||
throw new MappingException("Failed to read candidate entity class: " + resource, ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -161,7 +161,7 @@ public final class PersistenceManagedTypesScanner {
|
||||
}
|
||||
}
|
||||
catch (Throwable ex) {
|
||||
throw new PersistenceException("Failed to read candidate component class: " + resource, ex);
|
||||
throw new PersistenceException("Failed to read candidate entity class: " + resource, ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user