Add SQLite support with SqliteDatabaseManager and application mode handling:

- Created `SqliteDatabaseManager` for SQLite database initialization and management.
- Refactored `DatabaseManager` into an abstract class to support different database implementations.
- Introduced `ApplicationMode` enum to switch between `local` and `server` modes.
- Updated `MediaManagerApplication` to handle `runtype` configuration and initialize SQLite in `local` mode.
- Updated `config.properties.example` with new `runtype` property.
- Added SQLite JDBC dependency to `pom.xml`.
This commit is contained in:
Gustavo Henrique Santos Souza de Miranda
2025-11-21 18:03:20 -03:00
parent 77259308c6
commit dc4b6cbdfa
5 changed files with 160 additions and 61 deletions
+3 -1
View File
@@ -21,6 +21,8 @@ hibernate.format_sql=true
ipc.pipe.name=mediamanager-pipe
ipc.pipe.path=/tmp/mediamanager
ipc.buffer.size=8192
runtype=local
ipc.socket.path=/tmp/mediamanager