commit
92e41e445a
|
@ -16,7 +16,6 @@
|
||||||
*.ear
|
*.ear
|
||||||
|
|
||||||
# Files generated by integration tests
|
# Files generated by integration tests
|
||||||
*.txt
|
|
||||||
backup-pom.xml
|
backup-pom.xml
|
||||||
/bin/
|
/bin/
|
||||||
/temp
|
/temp
|
||||||
|
|
|
@ -231,10 +231,9 @@
|
||||||
<version>1.5.8.RELEASE</version>
|
<version>1.5.8.RELEASE</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.hsqldb</groupId>
|
<groupId>com.h2database</groupId>
|
||||||
<artifactId>hsqldb</artifactId>
|
<artifactId>h2</artifactId>
|
||||||
<version>2.4.0</version>
|
<version>1.4.197</version>
|
||||||
<scope>runtime</scope>
|
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
|
|
|
@ -13,8 +13,8 @@ public class BatchProcessing {
|
||||||
|
|
||||||
public void getConnection(){
|
public void getConnection(){
|
||||||
try {
|
try {
|
||||||
Class.forName("org.hsqldb.jdbcDriver");
|
Class.forName("org.h2.Driver");
|
||||||
connection = DriverManager.getConnection("jdbc:hsqldb: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);
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
baeldung.com
|
Loading…
Reference in New Issue