Commit 1c665219 authored by Luna Riegel's avatar Luna Riegel
Browse files

Refactor: Rename properties

parent baac7ded
...@@ -44,13 +44,13 @@ public final class DataBaseSettings { ...@@ -44,13 +44,13 @@ public final class DataBaseSettings {
logger.debug("No database settings found, using default configuration"); logger.debug("No database settings found, using default configuration");
return defaultConfig; return defaultConfig;
} }
String name = props.getProperty("name"); String name = props.getProperty("database.name");
String directory = props.getProperty("directory"); String directory = props.getProperty("database.directory");
String poolSizeString = props.getProperty("poolSize"); String poolSizeString = props.getProperty("database.connectionPoolSize");
String inMemoryModeString = props.getProperty("inMemoryMode"); String inMemoryModeString = props.getProperty("database.inMemoryMode");
String attemptFallbackString = props.getProperty("attemptFallback"); String attemptFallbackString = props.getProperty("database.attemptFallback");
String debugModeString = props.getProperty("debugMode"); String debugModeString = props.getProperty("database.debugMode");
String tempModeString = props.getProperty("tempMode"); String tempModeString = props.getProperty("database.tempMode");
boolean inMemoryMode = Boolean.parseBoolean(inMemoryModeString); boolean inMemoryMode = Boolean.parseBoolean(inMemoryModeString);
boolean attemptFallback = attemptFallbackString == null || Boolean.parseBoolean(attemptFallbackString); boolean attemptFallback = attemptFallbackString == null || Boolean.parseBoolean(attemptFallbackString);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment