In this case, the FlushMode of the flow-scoped persistence context will always be AUTO.
在这种情况下,流作用域持久化上下文的FlushMode将一直是AUTO。
In its JPA implementation, Hibernate sets the FlushMode of the underlying Hibernate session to MANUAL and the auto-commit mode to false.
在其JPA实现中,Hibernate将底层Hibernate会话的FlushMode设置为MANUAL并将auto - commit模式设置为false。
readOnly: Setting up a read/write transaction by specifying @Transactional(readOnly=false) will make the FlushMode of the persistence context AUTO.
readOnly:通过指定 @Transactional(readOnly=false)建立读/写事务,这样会使持久化上下文的FlushMode 变为AUTO。
readOnly: Setting up a read/write transaction by specifying @Transactional(readOnly=false) will make the FlushMode of the persistence context AUTO.
readOnly:通过指定 @Transactional(readOnly=false)建立读/写事务,这样会使持久化上下文的FlushMode 变为AUTO。
应用推荐