Skip to content

Commit

Permalink
Adds explicit bindings in JPA persist modules
Browse files Browse the repository at this point in the history
  • Loading branch information
anurag.ag committed Aug 24, 2024
1 parent 2418a65 commit d0fb2c6
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit d0fb2c6

Please sign in to comment.