add in mem db
This commit is contained in:
parent
78912c3d3b
commit
f8e6940155
|
@ -14,7 +14,7 @@ public class BatchProcessing {
|
||||||
public void getConnection(){
|
public void getConnection(){
|
||||||
try {
|
try {
|
||||||
Class.forName("org.h2.Driver");
|
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);
|
connection.setAutoCommit(false);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace(System.out);
|
e.printStackTrace(System.out);
|
||||||
|
|
Loading…
Reference in New Issue