google / google/guice

Enhance guice-persist to allow external data sources

Open
#706 1 comment 0 reactions 0 assignees View on GitHub
imported
Dominant language
Java
Stars
12.7k
Forks
1.7k
Avg merge
11m
Merged PRs (30d)
2

Description

_From [rgarcia@dridco.com](https://code.google.com/u/115156493272391760858/) on May 24, 2012 10:16:33_

I believe EntityManagerFactory expects a Map in its #createEntityManager call, on which you could provide an external java.sql.DataSource instance.

I would like to, within guice, `@`provide a DataSource, and on the same module, setup JpaPersistModule with this DataSource.

An enhancement: change java.util.Properties for the actually expected java.util.Map

An issue: how to provide a DataSource, and then inject it to a Map, and then inject it to the actual JpaPersistModule?

_Original issue: http://code.google.com/p/google-guice/issues/detail?id=706_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.