- Tl;dr We probably want to keep some level of manual flushing, but there are a lot of flushes we can remove!
-
Currently, we create Hibernate Sessions with FlushMode.MANUAL (code pointer and code pointer). This mode delegates all flushing operations to us.
- Initially I thought about changing our Sessions to have FlushMode.COMMIT or FlushMode.AUTO, both of which automatically flush before each Transaction commit. However, this looks to generate flushes that contain no actual changes, which we want to avoid.
-
The methods of
GenericHibernateDao
execute their queries with [`GenericHibernate