File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/main/java/de/presti/ree6/sql Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -116,9 +116,13 @@ public static SessionFactory buildSessionFactory(boolean debug) {
116
116
Set <Class <?>> classSet = new Reflections (
117
117
ConfigurationBuilder
118
118
.build ()
119
- .forPackage ("de.presti.ree6.webinterface. sql.entities" , ClasspathHelper .staticClassLoader ()))
119
+ .forPackage ("de.presti.ree6.sql.entities" , ClasspathHelper .staticClassLoader ()))
120
120
.getTypesAnnotatedWith (Table .class );
121
121
122
+ if (classSet .isEmpty ()) {
123
+ log .error ("No Entities found!" );
124
+ }
125
+
122
126
classSet .forEach (configuration ::addAnnotatedClass );
123
127
124
128
ServiceRegistry serviceRegistry = new StandardServiceRegistryBuilder ().applySettings (configuration .getProperties ()).build ();
You can’t perform that action at this time.
0 commit comments