From d0fb2c63acd2d3ec83e26cfd53eef3aaa2557889 Mon Sep 17 00:00:00 2001 From: "anurag.ag" Date: Sun, 25 Aug 2024 01:43:45 +0530 Subject: [PATCH] Adds explicit bindings in JPA persist modules --- .../src/com/google/inject/persist/jpa/JpaPersistModule.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/extensions/persist/src/com/google/inject/persist/jpa/JpaPersistModule.java b/extensions/persist/src/com/google/inject/persist/jpa/JpaPersistModule.java index b530f21359..ea780a9d34 100644 --- a/extensions/persist/src/com/google/inject/persist/jpa/JpaPersistModule.java +++ b/extensions/persist/src/com/google/inject/persist/jpa/JpaPersistModule.java @@ -64,6 +64,8 @@ public JpaPersistModule(String jpaUnit, JpaPersistOptions options) { protected void configurePersistence() { bindConstant().annotatedWith(Jpa.class).to(jpaUnit); bind(JpaPersistOptions.class).annotatedWith(Jpa.class).toInstance(options); + bind(JpaFinderProxy.class).in(Singleton.class); + bind(JpaPersistService.EntityManagerFactoryProvider.class).in(Singleton.class); bind(JpaPersistService.class).in(Singleton.class);