EntityManger flushmode in JDBC
问题 JPA is essentially an higher abstraction of JDBC. EntityManager has an API setAutoFlushMode. It can be set to AUTO or COMMIT. What's th equivalent of this in JDBC terms? thanks 回答1: JDBC has auto commit as well. They're both for configuring whether the library should automatically commit to the database. JDBCs auto-commit is very simplistic, it will commit every update to the database immediately. Without auto-commit, changes aren't committed until the commit method is called. JPA AUTO causes