Skip to content

Commit e7bcb58

Browse files
committed
init for graalvm workshops
1 parent da08557 commit e7bcb58

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

graalvm-nativeimage/helidon/src/main/java/com/oracle/helidon/datasource/TablesResource.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ public Response get() throws SQLException {
6464
+ " FROM ALL_TABLES "
6565
+ "ORDER BY TABLE_NAME ASC");
6666
ResultSet rs = ps.executeQuery()) {
67+
System.out.println("Connection is : " + connection);
6768
while (rs.next()) {
6869
sb.append(rs.getString(1)).append("\n");
6970
}

graalvm-nativeimage/micronaut/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<modelVersion>4.0.0</modelVersion>
6-
<groupId>com.examplec</groupId>
6+
<groupId>com.example</groupId>
77
<artifactId>micronaut-graalvm</artifactId>
88
<version>0.1</version>
99
<packaging>${packaging}</packaging>

graalvm-nativeimage/micronaut/src/main/java/com/oracle/dev/jdbc/micronaut/DataPopulator.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ public void migrateDatabase() throws SQLException {
7373

7474
private boolean checkTableExists(Connection connection) {
7575
try {
76+
System.out.println("Connection is : " + connection);
7677
PreparedStatement stmt = connection.prepareStatement("SELECT 'Hello World!' FROM dual");
7778
ResultSet resultSet = stmt.executeQuery();
7879
while (resultSet.next()) {

0 commit comments

Comments
 (0)