:q[uit]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Copyright (c) 2022, 2023, Oracle and/or its affiliates. | |
| This software is dual-licensed to you under the Universal Permissive License | |
| (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License | |
| 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose | |
| either license. | |
| Licensed under the Apache License, Version 2.0 (the "License"); | |
| you may not use this file except in compliance with the License. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.oracle.dev.jdbc; | |
| import java.sql.Connection; | |
| import java.sql.PreparedStatement; | |
| import java.sql.ResultSet; | |
| import java.sql.SQLException; | |
| import oracle.jdbc.pool.OracleDataSource; | |
| public class QueryWithBooleanDataTypeColumn { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.oracle.dev.jdbc; | |
| import java.sql.Connection; | |
| import java.sql.PreparedStatement; | |
| import java.sql.ResultSet; | |
| import java.sql.SQLException; | |
| import java.util.concurrent.ThreadLocalRandom; | |
| import org.eclipse.microprofile.config.inject.ConfigProperty; | |
| import org.slf4j.Logger; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.oracle.dev.jdbc; | |
| import org.eclipse.microprofile.config.inject.ConfigProperty; | |
| import org.slf4j.Logger; | |
| import org.slf4j.LoggerFactory; | |
| import jakarta.annotation.PostConstruct; | |
| import jakarta.annotation.PreDestroy; | |
| import jakarta.enterprise.context.ApplicationScoped; | |
| import jakarta.json.JsonObject; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Copyright (c) 2021, 2023, Oracle and/or its affiliates. | |
| This software is dual-licensed to you under the Universal Permissive License | |
| (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License | |
| 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose | |
| either license. | |
| Licensed under the Apache License, Version 2.0 (the "License"); | |
| you may not use this file except in compliance with the License. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: v1 | |
| kind: Pod | |
| metadata: | |
| name: odsa-spring | |
| spec: | |
| containers: | |
| - name: odsa-spring | |
| image: orclacregistry.azurecr.io/odsa-spring:v1 | |
| imagePullSecrets: | |
| - name: acr-secret |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.oracle.dev.jdbc; | |
| import java.io.IOException; | |
| import java.io.InputStream; | |
| import java.sql.Connection; | |
| import java.sql.DatabaseMetaData; | |
| import java.sql.PreparedStatement; | |
| import java.sql.ResultSet; | |
| import java.sql.SQLException; | |
| import java.util.Properties; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.oracle.dev.jdbc; | |
| import java.sql.SQLException; | |
| import java.util.Map; | |
| import java.util.Optional; | |
| import com.microsoft.azure.functions.ExecutionContext; | |
| import com.microsoft.azure.functions.HttpMethod; | |
| import com.microsoft.azure.functions.HttpRequestMessage; | |
| import com.microsoft.azure.functions.HttpResponseMessage; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM openjdk:17 | |
| COPY target/odsa-spring-0.0.1-SNAPSHOT.jar /app.jar | |
| EXPOSE 8080 | |
| CMD ["java", "-jar", "app.jar"] |