Status: New
Owner: ----

New issue 750 by [email protected]: With guice-persist, it is not possible to provide a DataSource to providers.
http://code.google.com/p/google-guice/issues/detail?id=750

JpaPersistService takes a parameter thus:
   Properties persistenceProperties

However, this is used later to create an entity manager:
Persistence.createEntityManagerFactory(persistenceUnitName, persistenceProperties);


The signature for that method is String, Map, NOT String, Properties.

If one is using Hibernate, you can pass the desired DataSource object in using that Map with Environment.DATASOURCE storing the actual object. Clearly you cannot do that if it's Properties (string->string map)

Changing this so that the persistenceProperties were a Map would solve this.


--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
"google-guice-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-guice-dev?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to