From 85ab8588685b43ba355b893b4057d2479761ee35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Manteaux?= Date: Fri, 6 Dec 2024 09:37:39 +0100 Subject: [PATCH] Add DataSourceModule to QuerydslGenerator --- src/main/java/com/coreoz/db/QuerydslGenerator.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/coreoz/db/QuerydslGenerator.java b/src/main/java/com/coreoz/db/QuerydslGenerator.java index ddc533e..662dc3e 100644 --- a/src/main/java/com/coreoz/db/QuerydslGenerator.java +++ b/src/main/java/com/coreoz/db/QuerydslGenerator.java @@ -6,6 +6,7 @@ import com.coreoz.plume.admin.db.generated.AdminUser; import com.coreoz.plume.conf.guice.GuiceConfModule; +import com.coreoz.plume.db.guice.DataSourceModule; import com.coreoz.plume.db.querydsl.generation.IdBeanSerializer; import com.coreoz.plume.db.transaction.TransactionManager; import com.coreoz.plume.file.db.beans.FileDataQueryDsl; @@ -74,7 +75,7 @@ public String getDefaultVariableName(EntityType entityType) { exporter.setColumnAnnotations(true); exporter.setConfiguration(configuration); - Injector injector = Guice.createInjector(new GuiceConfModule()); + Injector injector = Guice.createInjector(new GuiceConfModule(), new DataSourceModule()); injector.getInstance(TransactionManager.class).execute(connection -> { try { exporter.export(connection.getMetaData());