Spring @Transactional read-only propagation
First of all, since Spring doesn’t do persistence itself, it cannot specify what readOnly should exactly mean. This attribute is only a hint to the provider, the behavior depends on, in this case, Hibernate. If you specify readOnly as true, the flush mode will be set as FlushMode.NEVER in the current Hibernate Session preventing the … Read more