2 Replies Latest reply on Oct 12, 2010 4:21 AM by Nicklas Karlsson

    @PersistenceProperty on @PersistenceContext

    Nicklas Karlsson Master

      (this is a bit of a borderline case between persistence and EJB but...)

       

      Since @PersistenceContext(type=PersistenceContextType.EXTENDED, properties=@PersistenceProperty(name="org.hibernate.flushMode", value="MANUAL")) apparently isn't working (https://jira.jboss.org/browse/EJBTHREE-466), what would be the way to force manual flush mode throughout the application (without using query hints or doing a manual set on the hib-session in a business method)?

       

      I have a lot of @PC:s and hate to hack around this everywhere because I get a premature flushes if I miss one...