Skip to content

Commit 92e41e4

Browse files
authored
Merge pull request eugenp#4008 from eugenp/h2-issue
replace hsql with h2
2 parents 02f29a9 + 90e6ec2 commit 92e41e4

4 files changed

Lines changed: 6 additions & 7 deletions

File tree

‎core-java/.gitignore‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
*.ear
1717

1818
# Files generated by integration tests
19-
*.txt
2019
backup-pom.xml
2120
/bin/
2221
/temp

‎core-java/pom.xml‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -231,10 +231,9 @@
231231
<version>1.5.8.RELEASE</version>
232232
</dependency>
233233
<dependency>
234-
<groupId>org.hsqldb</groupId>
235-
<artifactId>hsqldb</artifactId>
236-
<version>2.4.0</version>
237-
<scope>runtime</scope>
234+
<groupId>com.h2database</groupId>
235+
<artifactId>h2</artifactId>
236+
<version>1.4.197</version>
238237
</dependency>
239238
</dependencies>
240239

‎core-java/src/main/java/com/baeldung/jdbc/BatchProcessing.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ public class BatchProcessing {
1313

1414
public void getConnection(){
1515
try {
16-
Class.forName("org.hsqldb.jdbcDriver");
17-
connection = DriverManager.getConnection("jdbc:hsqldb:file:C:\\EMPLOYEEDB", "SA", "");
16+
Class.forName("org.h2.Driver");
17+
connection = DriverManager.getConnection("jdbc:h2:mem:db", "SA", "");
1818
connection.setAutoCommit(false);
1919
} catch (Exception e) {
2020
e.printStackTrace(System.out);
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
baeldung.com

0 commit comments

Comments
 (0)