1 Commits
Author SHA1 Message Date
Len e2a32c1ebd Load homes from SQL 2024-08-12 09:53:44 +02:00
@@ -176,6 +176,7 @@ public class SQLStorageProvider extends StorageProvider {
@Override @Override
public void save(@NotNull EssentiaUser user) throws Exception { public void save(@NotNull EssentiaUser user) throws Exception {
// TODO - convert to json object and save that in sql!
// Todo - use reflection to go over the fields to save? // Todo - use reflection to go over the fields to save?
// might not be the best way if new fields are added... // might not be the best way if new fields are added...
// split into multiple tables - users, userdata, userhomes, ... ? // split into multiple tables - users, userdata, userhomes, ... ?
@@ -193,6 +194,11 @@ public class SQLStorageProvider extends StorageProvider {
} }
}), true }), true
); );
saveHomes(user);
}
private void saveHomes(EssentiaUser essentiaUser) {
// TODO
} }
@Override @Override