add in mem db
This commit is contained in:
parent
78912c3d3b
commit
f8e6940155
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue