私のJavaコード:
private EntityManagerFactory emf = Persistence.createEntityManagerFactory("cassandra_pu");
private EntityManager em = emf.createEntityManager();
while(condition){
em.merge(objects[i]);
}
例外なく正常に実行できますが、データベース テーブルは更新されません。それは、すべてのトランザクションがキューに入れられているためだと思います。もしそうなら、トランザクションをすぐにコミットする方法はありますか?