Comment #20 on issue 598 by [email protected]: Persist Extension:
PersistService.start() cannot be called multiple times
https://code.google.com/p/google-guice/issues/detail?id=598
install(Modules.override(new
JpaPersistModule("yourjpaunitstring")).with(new
YourCustomizedPersistModule()));
where YourCustomizedPersistModule does the bindings I showed previously:
@Override
protected void configure() {
bindConstant().annotatedWith(Jpa.class).to("yourjpaunitstring");
bind(Properties.class).annotatedWith(Jpa.class).toInstance(new
Properties());
bind(PersistService.class).to(YourCustomizedJpaPersistService.class);
bind(JpaPersistService.class).to(YourCustomizedJpaPersistService.class);
bind(YourCustomizedJpaPersistService.class).in(Singleton.class);
}
--
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.
For more options, visit https://groups.google.com/d/optout.