Skip to content

Commit f7f22f4

Browse files
committed
Made new register methods static
1 parent 9238014 commit f7f22f4

File tree

1 file changed

+2
-2
lines changed
  • src/main/java/org/javawebstack/orm

1 file changed

+2
-2
lines changed

src/main/java/org/javawebstack/orm/ORM.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ public static <T extends Model> Repo<T> register(Class<T> model, SQL sql) throws
3131
return register(model, sql, new ORMConfig());
3232
}
3333

34-
public void register(Package p, SQL sql, ORMConfig config) throws ORMConfigurationException {
34+
public static void register(Package p, SQL sql, ORMConfig config) throws ORMConfigurationException {
3535
for(Class<? extends Model> model : new Reflections(p.getName()).getSubTypesOf(Model.class))
3636
ORM.register(model, sql, config);
3737
}
3838

39-
public void register(Package p, SQL sql) throws ORMConfigurationException {
39+
public static void register(Package p, SQL sql) throws ORMConfigurationException {
4040
register(p, sql, new ORMConfig());
4141
}
4242

0 commit comments

Comments
 (0)