Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ private DefaultEntityManager(Builder<T, K> builder) {
public void put(T entity) throws PersistenceException {
try {
lifecycleHandler.onPrePersist(entity);
MutationBatch mb = newMutationBatch();
MutationBatch mb = getMutationBatch();
entityMapper.fillMutationBatch(mb, columnFamily, entity);
if (autoCommit)
mb.execute();
Expand Down Expand Up @@ -284,7 +284,7 @@ public void remove(T entity) throws PersistenceException {
try {
lifecycleHandler.onPreRemove(entity);
id = entityMapper.getEntityId(entity);
MutationBatch mb = newMutationBatch();
MutationBatch mb = getMutationBatch();
mb.withRow(columnFamily, id).delete();
if (autoCommit)
mb.execute();
Expand Down