Implement Genre Management with CRUD Operations

- Add `Genre` entity with JPA annotations and database mapping.
- Create repository, service, and delegate handlers for Genre CRUD operations.
- Register handlers (`create_genre`, `get_genres`, `get_genre_by_id`, `update_genre`, `delete_genre`) in `DelegateActionManager`.
- Introduce Protobuf definitions for Genre messages.
- Update `DatabaseManager` to expose `EntityManager`.
- Enhance `DelegateActionManager` constructor to use `EntityManager` for handler initialization.
This commit is contained in:
Gustavo Henrique Santos Souza de Miranda
2025-11-28 23:33:27 -03:00
parent ba53d4d8c4
commit 7b61b2071e
13 changed files with 647 additions and 4 deletions
@@ -60,7 +60,7 @@ public class MediaManagerApplication {
default:
}
databaseManager.init();
actionManager = new DelegateActionManager();
actionManager = new DelegateActionManager(databaseManager.getEntityManager());
actionManager.start();
ipcManager = new IPCManager(config,actionManager);
ipcManager.init();