moved getFlushMode/setFlushMode to concrete classes since they depend on particular versions of Hibernate