Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 11aa56e

Browse files
committedDec 16, 2022
Fixed Entity loading Issue.
1 parent 21676cf commit 11aa56e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎src/main/java/de/presti/ree6/sql/SQLSession.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,13 @@ public static SessionFactory buildSessionFactory(boolean debug) {
116116
Set<Class<?>> classSet = new Reflections(
117117
ConfigurationBuilder
118118
.build()
119-
.forPackage("de.presti.ree6.webinterface.sql.entities", ClasspathHelper.staticClassLoader()))
119+
.forPackage("de.presti.ree6.sql.entities", ClasspathHelper.staticClassLoader()))
120120
.getTypesAnnotatedWith(Table.class);
121121

122+
if (classSet.isEmpty()) {
123+
log.error("No Entities found!");
124+
}
125+
122126
classSet.forEach(configuration::addAnnotatedClass);
123127

124128
ServiceRegistry serviceRegistry = new StandardServiceRegistryBuilder().applySettings(configuration.getProperties()).build();

0 commit comments

Comments
 (0)
Please sign in to comment.