add in mem db

This commit is contained in:
Loredana Crusoveanu 2018-04-15 09:35:00 +03:00
parent 78912c3d3b
commit f8e6940155
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ public class BatchProcessing {
public void getConnection(){
try {
Class.forName("org.h2.Driver");
connection = DriverManager.getConnection("jdbc:h2:file:C:\\EMPLOYEEDB", "SA", "");
connection = DriverManager.getConnection("jdbc:h2:mem:db", "SA", "");
connection.setAutoCommit(false);
} catch (Exception e) {
e.printStackTrace(System.out);