diff --git a/src/main/java/com/loafle/overflow/commons/dao/JPABaseDAO.java b/src/main/java/com/loafle/overflow/commons/dao/JPABaseDAO.java index c98aa08..5421a00 100644 --- a/src/main/java/com/loafle/overflow/commons/dao/JPABaseDAO.java +++ b/src/main/java/com/loafle/overflow/commons/dao/JPABaseDAO.java @@ -43,6 +43,7 @@ public class JPABaseDAO implements BaseDAO { } public int createAll(List entityList) { + EntityTransaction tx = this.entityManager.getTransaction(); if (!tx.isActive()) tx.begin(); try {