Improve exception message for JPA entity scanning

This commit is contained in:
Sam Brannen
2026-01-07 12:08:14 +01:00
parent c5044bfdbc
commit e94aaab288
2 changed files with 2 additions and 2 deletions
@@ -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);
}
}
}
@@ -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);
}
}
}