From 23c102468cf318bb31a8ea4e9cfbefe0e54f364a Mon Sep 17 00:00:00 2001 From: Bohdan Date: Sun, 25 Aug 2024 22:13:14 +0300 Subject: [PATCH] Help me with tests --- src/main/java/mate/academy/dao/MovieDaoImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/mate/academy/dao/MovieDaoImpl.java b/src/main/java/mate/academy/dao/MovieDaoImpl.java index aee6f779..7099d8a2 100644 --- a/src/main/java/mate/academy/dao/MovieDaoImpl.java +++ b/src/main/java/mate/academy/dao/MovieDaoImpl.java @@ -20,7 +20,7 @@ public Movie add(Movie movie) { session.persist(movie); transaction.commit(); } catch (DataProcessingException e) { - if(transaction != null) { + if (transaction != null) { transaction.rollback(); } } finally {