I'm fairly new to guice so hopefully this is a dead simple question.
I want disable flushing on my EntityManager.
I have added the following line to my persistence.xml file
<property name="org.hibernate.FlushMode" value="NEVER" />
And my persist module is installed like so:
public class _Module extends AbstractModule {
protected void configure() {
install(new
JpaPersistModule("_").properties(System.getProperties()));
}
}
And I am using PersistFilter like so:
public class _Module extends ServletModule {
protected void configureServlets() {
filter("/*").through(PersistFilter.class);
}
}
However, the FlushMode setting is being completely ignored, in fact,
when I step through the Hibernate source I see that the EntityManager
is being created with the default values.
I am using guice 3.0 and hibernate 3.6.10.
Is there some other way I should be configuring this?
Thanks for your time.
Craig Sherstan
--
You received this message because you are subscribed to the Google Groups
"google-guice" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-guice?hl=en.