createAll
This commit is contained in:
parent
809f91c195
commit
0930b4402d
|
@ -43,6 +43,7 @@ public class JPABaseDAO<T> implements BaseDAO<T> {
|
|||
}
|
||||
|
||||
public int createAll(List<T> entityList) {
|
||||
|
||||
EntityTransaction tx = this.entityManager.getTransaction();
|
||||
if (!tx.isActive()) tx.begin();
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue
Block a user