Commit a678e048 by Patryk Czarnik

commit :-)

parent dc570b0f
...@@ -42,6 +42,7 @@ public class Sklep { ...@@ -42,6 +42,7 @@ public class Sklep {
try(DBConnection db = DBConnection.open()) { try(DBConnection db = DBConnection.open()) {
ProductDAO productDAO = db.productDAO(); ProductDAO productDAO = db.productDAO();
productDAO.save(product); productDAO.save(product);
db.commit();
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment