aboutsummaryrefslogtreecommitdiff
path: root/Week9/src/com/camilstaps/shop/Database.java
diff options
context:
space:
mode:
Diffstat (limited to 'Week9/src/com/camilstaps/shop/Database.java')
-rw-r--r--Week9/src/com/camilstaps/shop/Database.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/Week9/src/com/camilstaps/shop/Database.java b/Week9/src/com/camilstaps/shop/Database.java
index b04eaf5..8344bca 100644
--- a/Week9/src/com/camilstaps/shop/Database.java
+++ b/Week9/src/com/camilstaps/shop/Database.java
@@ -37,6 +37,9 @@ public class Database {
/**
* Files to store the database
+ * Considering backups, it's nicer to have different objects stored in
+ * different files, so that if the Orders file breaks, we still have the
+ * Users, etc.
*/
private final File FILE_DB = new File("./db");
private final File FILE_USERS = new File("./db/users.db");